Index: chrome/content/tests/matcher.js |
diff --git a/chrome/content/tests/matcher.js b/chrome/content/tests/matcher.js |
index 1387d888168c3ccf932877122cb0176e809ad444..8a1d6c536a79d98d370ea2821212dd2641f60154 100644 |
--- a/chrome/content/tests/matcher.js |
+++ b/chrome/content/tests/matcher.js |
@@ -30,7 +30,7 @@ |
for (let filter of filters) |
matcher.add(Filter.fromText(filter)); |
- let result = matcher.matchesAny(location, contentType, docDomain, thirdParty, sitekey); |
+ let result = matcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey); |
if (result) |
result = result.text; |
@@ -42,7 +42,7 @@ |
for (let filter of filters) |
combinedMatcher.add(Filter.fromText(filter)); |
- let result = combinedMatcher.matchesAny(location, contentType, docDomain, thirdParty, sitekey); |
+ let result = combinedMatcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey); |
if (result) |
result = result.text; |
@@ -57,7 +57,7 @@ |
function cacheCheck(matcher, location, contentType, docDomain, thirdParty, expected) |
{ |
- let result = matcher.matchesAny(location, contentType, docDomain, thirdParty); |
+ let result = matcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty); |
if (result) |
result = result.text; |