Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/csp.js

Issue 29739594: Issue 6543 - Match requests without tabId/frameId in their originating context (Closed)
Patch Set: Use URL patterns to find tabs for initiator Created April 4, 2018, 1:01 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/cssInjection.js » ('j') | lib/requestBlocker.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/csp.js
===================================================================
--- a/lib/csp.js
+++ b/lib/csp.js
@@ -49,7 +49,8 @@
// $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, typeMap.GENERICBLOCK);
+ let specificOnly = !!checkWhitelisted(page, frame, null,
+ typeMap.GENERICBLOCK);
if (specificOnly)
{
cspMatch = defaultMatcher.matchesAny(urlString, typeMap.CSP, hostname,
« no previous file with comments | « no previous file | lib/cssInjection.js » ('j') | lib/requestBlocker.js » ('J')

Powered by Google App Engine
This is Rietveld