Summary
Easier Citation 0.5.4 uses the removed ChromeUtils.import() API in its bundled console helper. Zotero 9 records repeated errors during plugin startup.
Environment
- Zotero 9.0.6
- Easier Citation 0.5.4
- Windows 11
Actual result
ChromeUtils.import() has been removed. Use importESModule():
ChromeUtils.importESModule("resource://gre/modules/Console.sys.mjs");
The packaged chrome/content/scripts/index.js includes:
if (typeof globalThis.ChromeUtils?.import !== "undefined") {
const { ConsoleAPI } =
ChromeUtils.import("resource://gre/modules/Console.jsm");
}
On Zotero 9 the compatibility stub exists but throws, so the typeof guard does not prevent the error.
Expected result
The plugin should start without using removed Firefox/Zotero module-loading APIs.
Suggested fix
Switch to ChromeUtils.importESModule("resource://gre/modules/Console.sys.mjs"), or update the bundled toolkit/logger implementation to a Zotero 9-compatible version.
Summary
Easier Citation 0.5.4 uses the removed
ChromeUtils.import()API in its bundled console helper. Zotero 9 records repeated errors during plugin startup.Environment
Actual result
The packaged
chrome/content/scripts/index.jsincludes:On Zotero 9 the compatibility stub exists but throws, so the
typeofguard does not prevent the error.Expected result
The plugin should start without using removed Firefox/Zotero module-loading APIs.
Suggested fix
Switch to
ChromeUtils.importESModule("resource://gre/modules/Console.sys.mjs"), or update the bundled toolkit/logger implementation to a Zotero 9-compatible version.