Zotero 5 Firefox connector show a lot of error in Browser console

On every page load a lot of messages are displayed in the Browser Console https://developer.mozilla.org/en/docs/Tools/Browser_Console (not to be confounded with the Web Console).

Stuff like that:

Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/node_modules.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/promise.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/zotero/rdf/uri.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/zotero/rdf/term.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/zotero/rdf/identity.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/zotero/rdf/match.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/zotero/rdf/rdfparser.js' result is non-structured-clonable data ExtensionCommon.jsm:306
Unchecked lastError value: Error: Script 'moz-extension://c392e95f-7b70-9542-a00a-b473267f5048/inject/http.js' result is non-structured-clonable data ExtensionCommon.jsm:306

I also created a debug output (from the extension) while i was loading a tab. ID is D710570215.
  • This is generally harmless for the working of the connector and a consequence of extension API difference between firefox and chrome. Firefox API is perhaps the superior one, but chrome isn't compatible with firefox API, while firefox supports chrome API with a side-effect of logging a lot of lines like this.
  • "consequence of extension API difference between firefox and chrome" I do not agree. You can use polyfill: https://github.com/mozilla/webextension-polyfill . An other way is to implement interface for each browser to abstract API call.

    Even if this has no direct consequences, it's still polluting the log and make it hard to debug other things or zotero in the future.
Sign In or Register to comment.