From 303b3a9a8958dbf84b5bfdf45b4b7b77adca628b Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 8 Jul 2025 16:07:13 -0400 Subject: [PATCH] Preferences: Fix sandbox creation for subpanes --- chrome/content/zotero/preferences/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 34aefc5189..889b214b50 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -282,7 +282,7 @@ var Zotero_Preferences = { if (pane.scripts) { pane.scope = new Cu.Sandbox(window, { sandboxPrototype: window, - sandboxName: pane.rawLabel, + sandboxName: pane.rawLabel || pane.id, }); for (let script of pane.scripts) { Services.scriptloader.loadSubScript(script, pane.scope);