diff options
author | hackademix | 2018-09-08 23:09:39 +0200 |
---|---|---|
committer | hackademix | 2018-09-08 23:09:39 +0200 |
commit | 4f7d8579afa3b6a71173b3deefaf359d63e1e4e9 (patch) | |
tree | b45998ba15b49ebb5bcebfc6009e3df77c059403 /src/bg/RequestGuard.js | |
parent | b60cbbd49e6d452adeb3abf8cc47ca276000a4db (diff) | |
download | noscript-4f7d8579afa3b6a71173b3deefaf359d63e1e4e9.tar.gz noscript-4f7d8579afa3b6a71173b3deefaf359d63e1e4e9.tar.xz noscript-4f7d8579afa3b6a71173b3deefaf359d63e1e4e9.zip |
More efficient window.name persistence for tab-scoped permissions.
Diffstat (limited to 'src/bg/RequestGuard.js')
-rw-r--r-- | src/bg/RequestGuard.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); |