From 4f7d8579afa3b6a71173b3deefaf359d63e1e4e9 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 8 Sep 2018 23:09:39 +0200 Subject: More efficient window.name persistence for tab-scoped permissions. --- src/bg/ChildPolicies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bg/ChildPolicies.js') diff --git a/src/bg/ChildPolicies.js b/src/bg/ChildPolicies.js index 99402ca..e8608ad 100644 --- a/src/bg/ChildPolicies.js +++ b/src/bg/ChildPolicies.js @@ -102,7 +102,7 @@ let preamble = info ? `${marker} + ${JSON.stringify(JSON.stringify([info]))} + ${marker} + "," + ` : ""; await browser.tabs.executeScript(tabId, { code: `window.name = ${preamble}window.name.split(${marker} + ",").pop();`, - allFrames: false, + allFrames: true, matchAboutBlank: true, runAt: "document_start", }); -- cgit v1.2.3