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

Unified Diff: webrequest.js

Issue 29321504: Issue 2738 - Pass bit masks to matching functions (Closed)
Patch Set: Created July 9, 2015, 2:50 p.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
« lib/whitelisting.js ('K') | « popupBlocker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrequest.js
diff --git a/webrequest.js b/webrequest.js
index a771874ae465f790ab9d2214848a1564f0fd4291..1c1e251c672ee0ce162579e2a3f6bd5d3284d708 100644
--- a/webrequest.js
+++ b/webrequest.js
@@ -67,7 +67,7 @@ function onBeforeRequest(url, type, page, frame)
var key = getKey(page, frame);
var filter = defaultMatcher.matchesAny(
stringifyURL(url),
- type, docDomain,
+ RegExpFilter.toTypeMask(type), docDomain,
isThirdParty(url, docDomain),
key
);
« lib/whitelisting.js ('K') | « popupBlocker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld