This commit is contained in:
gorhill 2015-08-15 14:17:50 -04:00
parent 6dd5c832a2
commit 5de5074f1c
1 changed files with 3 additions and 0 deletions

View File

@ -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,