From 5de5074f1c55776f3192954cd69add314573d4cb Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 15 Aug 2015 14:17:50 -0400 Subject: [PATCH] this fixes https://github.com/gorhill/uMatrix/issues/325 --- platform/firefox/frameModule.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js index 7a0d84ded..b7c765d1c 100644 --- a/platform/firefox/frameModule.js +++ b/platform/firefox/frameModule.js @@ -226,7 +226,10 @@ const contentObserver = { win.document.title.slice(0, 100) ].join(' | '); + // https://github.com/gorhill/uMatrix/issues/325 + // "Pass sameZoneAs to sandbox constructor to make GCs cheaper" sandbox = Cu.Sandbox([win], { + sameZoneAs: win.top, sandboxName: sandboxId + '[' + sandboxName + ']', sandboxPrototype: win, wantComponents: false,