aboutsummaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-08-15 14:17:50 -0400
committergorhill <rhill@raymondhill.net>2015-08-15 14:17:50 -0400
commit5de5074f1c55776f3192954cd69add314573d4cb (patch)
treefa8867e2d3ef49776acbbc71fb6c55ed2a870c1c /platform
parent6dd5c832a2c9dadc518754a9839b7494950e8484 (diff)
downloaduBlock-5de5074f1c55776f3192954cd69add314573d4cb.zip
uBlock-5de5074f1c55776f3192954cd69add314573d4cb.tar.gz
uBlock-5de5074f1c55776f3192954cd69add314573d4cb.tar.bz2
this fixes https://github.com/gorhill/uMatrix/issues/325
Diffstat (limited to 'platform')
-rw-r--r--platform/firefox/frameModule.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/firefox/frameModule.js b/platform/firefox/frameModule.js
index 7a0d84d..b7c765d 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,