zotero/test/tests/data/plugin-loading-test/manifest.json
Thenewmanator15 ba2d6ecee4
Fix plugin loading on Firefox 153.3 (untrusted URI) (#6058)
As of Firefox 153.3.0esr, Services.scriptloader refuses jar:file: and file:
URIs unless allowUnsafeURL is passed (Mozilla bug 1974213), so no plugin
loads: bootstrap.js fails with "Trying to load untrusted URI", then
"Plugin ... is missing bootstrap method 'startup'".

Pass allowUnsafeURL when loading a plugin's bootstrap.js and prefs.js,
and preference pane scripts, and temporarily enable
security.allow_unsafe_subscript_loads, which covers loads from plugin
code outside the bootstrap scope.

Also add a test that installs a fixture plugin that loads a script from its XPI
and sets a default pref.

---------

Co-authored-by: Dan Stillman <dstillman@zotero.org>
2026-10-05 10:51:07 -04:00

13 lines
288 B
JSON

{
"manifest_version": 2,
"name": "Plugin Loading Test",
"version": "1.0",
"applications": {
"zotero": {
"id": "plugin-loading-test@zotero.org",
"update_url": "https://www.zotero.org/",
"strict_min_version": "7.0",
"strict_max_version": "*"
}
}
}