Zotero 11 for Developers#

Zotero 11 includes an internal upgrade of the Mozilla platform on which Zotero is based, incorporating changes from Firefox 140 through Firefox 153.

For previous changes, see Zotero 10 for Developers.

Feedback#

If you have questions about anything on this page or encounter other problems while updating your plugin, let us know on the dev list. Please don’t post to the Zotero Forums about Zotero 11 at this time.

Dev Builds#

WARNING: These are test builds based on Firefox 153 intended solely for use by Zotero plugin developers and should not be used in production. We strongly recommend using a separate profile and data directory for development.

These dev channel builds will stop updating once a beta is available with these changes.

Updating plugin compatibility#

Do not update your plugin to declare compatibility with Zotero 11 at this time. We’ll make an announcement on the dev list when Zotero 11 is feature-frozen and it’s time to test for compatibility.

Note that beta, dev, and source builds no longer enforce strict_max_version, either at install time or for updates, so you can test a plugin with a lower max version on one of thoes builds without modifying it. Stable builds still enforce it.

Platform Changes#

Mozilla Platform#

The following list includes nearly all Mozilla changes that affected Zotero code. You may encounter other breaking changes if you use APIs not used in Zotero. Searchfox is the best resource for identifying current correct usage in Mozilla code and changes between Firefox 140 and Firefox 153.

Many of these changes fail silently rather than throwing, so a plugin that appears to load fine may still have dead handlers or elements stuck in the wrong state.

You can use Zotero.platformMajorVersion in your code to test what Firefox version the current Zotero build is based on.

Some other Firefox 153 changes that would have affected plugins are handled in Zotero, either by restoring the previous behavior or by providing a replacement, and need no changes in plugins: the removal of <search-textbox> and of wantdropmarker support on <toolbarbutton>, restrictions on loading chrome: DTDs, and new restrictions on eval() in the parent process.

One of these is temporary. Firefox now applies a baseline script-src chrome: resource: moz-src: CSP to every chrome: document (bug 2038660), which blocks inline <script>s and inline event handlers. Zotero currently disables it with security.chrome_baseline_csp.enabled, but we intend to move our own inline scripts and event handlers into separate files and drop the pref, so plugins should do the same.