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/RequestGuard.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bg/RequestGuard.js') diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index 299e1a3..8850542 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -317,6 +317,10 @@ var RequestGuard = (() => { await ChildPolicies.update(policy); } capabilities = perms.capabilities; + } else { + if (!isMainFrame && type === "sub_frame") { + await Settings.enforceTabRestrictions(tabId); + } } if (isMainFrame && !TabStatus.map.has(tabId)) { debug("No TabStatus data yet for noscriptFrame", tabId); -- cgit v1.2.3