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

Unified Diff: background.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
« no previous file with comments | « no previous file | lib/filterComposer.js » ('j') | lib/filterComposer.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
diff --git a/background.js b/background.js
index cf1e2ea081f70101fdb8f2a21298466478c99124..00a66ecbed07ab0390a3a59941486cd2105e9e9f 100644
--- a/background.js
+++ b/background.js
@@ -20,6 +20,7 @@ with(require("filterClasses"))
this.Filter = Filter;
this.BlockingFilter = BlockingFilter;
this.WhitelistFilter = WhitelistFilter;
+ this.RegExpFilter = RegExpFilter;
}
with(require("subscriptionClasses"))
{
@@ -340,7 +341,7 @@ ext.onMessage.addListener(function (msg, sender, sendResponse)
{
var url = new URL(msg.urls[i], msg.baseURL);
var filter = defaultMatcher.matchesAny(
- stringifyURL(url), msg.mediatype,
+ stringifyURL(url), RegExpFilter.toTypeMask(msg.mediatype),
Sebastian Noack 2015/07/09 15:28:52 This operation can be done outside of the loop.
kzar 2015/07/12 14:28:00 Done.
documentHost, isThirdParty(url, documentHost)
);
« no previous file with comments | « no previous file | lib/filterComposer.js » ('j') | lib/filterComposer.js » ('J')

Powered by Google App Engine
This is Rietveld