| Index: lib/csp.js |
| =================================================================== |
| --- a/lib/csp.js |
| +++ b/lib/csp.js |
| @@ -45,17 +45,17 @@ |
| return; |
| // To avoid an extra matchesAny for the common case we assumed no |
| // $genericblock filters applied when searching for a matching $csp filter. |
| // We must now pay the price by first checking for a $genericblock filter |
| // and if necessary that our $csp filter is specific. |
| let specificOnly = !!checkWhitelisted(page, frame, null, |
| typeMap.GENERICBLOCK); |
| - if (specificOnly) |
| + if (specificOnly && !(cspMatch instanceof WhitelistFilter)) |
| { |
| cspMatch = defaultMatcher.matchesAny(details.url, typeMap.CSP, hostname, |
| thirdParty, null, specificOnly); |
| if (!cspMatch) |
| return; |
| } |
| logRequest([details.tabId], { |