Browse Source

this fixes #325

pull/2/head
gorhill 9 years ago
parent
commit
12c5acd287
  1. 3
      platform/firefox/frameModule.js

3
platform/firefox/frameModule.js

@ -188,7 +188,10 @@ const contentObserver = {
win.document.title.slice(0, 100) win.document.title.slice(0, 100)
].join(' | '); ].join(' | ');
// https://github.com/gorhill/uMatrix/issues/325
// "Pass sameZoneAs to sandbox constructor to make GCs cheaper"
sandbox = Cu.Sandbox([win], { sandbox = Cu.Sandbox([win], {
sameZoneAs: win.top,
sandboxName: sandboxId + '[' + sandboxName + ']', sandboxName: sandboxId + '[' + sandboxName + ']',
sandboxPrototype: win, sandboxPrototype: win,
wantComponents: false, wantComponents: false,

Loading…
Cancel
Save