Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -86,17 +86,17 @@ |
let docDomain = extractHostFromFrame(frame); |
let specificOnly = checkWhitelisted(page, frame, null, |
RegExpFilter.typeMap.GENERICBLOCK); |
// Add a blocking filter for each URL of the element that can be blocked |
for (let url of details.urls) |
{ |
let urlObj = new URL(url, details.baseURL); |
- let filter = defaultMatcher.whitelist.matchesAny( |
+ let filter = defaultMatcher.matchesAny( |
Manish Jethani
2018/12/18 17:12:16
We need to use the new `isWhitelisted` function he
Jon Sonesen
2018/12/19 10:05:21
Done.
kzar
2018/12/19 10:16:52
Nit: I have to agree with Manish, `whitelisted` or
|
urlObj.href, typeMask, docDomain, |
isThirdParty(urlObj, docDomain), |
getKey(page, frame), specificOnly |
); |
if (!filter) |
{ |
let filterText = urlObj.href.replace(/^[\w-]+:\/+(?:www\.)?/, "||"); |