From ba4949e822ce3af75419fa822e791d7ff7ab8dd9 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 21 Aug 2025 11:35:41 -0400 Subject: [PATCH] Fix `nukeSandbox` error when closing settings Fixes #5509 --- chrome/content/zotero/preferences/preferences.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index a81b217887..98e6675e69 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -283,6 +283,7 @@ var Zotero_Preferences = { pane.scope = new Cu.Sandbox(window, { sandboxPrototype: window, sandboxName: pane.rawLabel || pane.id, + sameZoneAs: window, }); for (let script of pane.scripts) { Services.scriptloader.loadSubScript(script, pane.scope);