From 91334fe94477fdbcb85fcf93d87e3c73294da106 Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 21 Aug 2018 23:51:59 +0200 Subject: Fixed inconstitencies in ChildPolicies content script URL matching. --- src/bg/ChildPolicies.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bg') diff --git a/src/bg/ChildPolicies.js b/src/bg/ChildPolicies.js index 5b1b209..32abafe 100644 --- a/src/bg/ChildPolicies.js +++ b/src/bg/ChildPolicies.js @@ -111,11 +111,12 @@ // compute exclusions let permsMapEntries = [...permsMap]; let excludeMap = new Map(); + for (let [perms, keys] of permsMapEntries) { excludeMap.set(perms, siteKeys2MatchPatterns(flatten( permsMapEntries.filter(([other]) => other !== perms) .map(([otherPerms, otherKeys]) => otherKeys)) - .filter(k => k && k.includes("/")) + .filter(k => k && k.includes("/") && keys.some(by => Sites.isImplied(k, by))) )); } -- cgit v1.2.3