Index: lib/contentPolicy.js |
=================================================================== |
--- a/lib/contentPolicy.js |
+++ b/lib/contentPolicy.js |
@@ -269,17 +269,17 @@ var Policy = exports.Policy = |
let frame = frames[i]; |
let wndLocation = frame.location; |
let parentWndLocation = frames[Math.min(i + 1, frames.length - 1)].location; |
let parentDocDomain = getHostname(parentWndLocation); |
let match = defaultMatcher.matchesAny(wndLocation, typeMap, parentDocDomain, false, sitekey); |
if (match instanceof WhitelistFilter) |
{ |
- let whitelistType = (whitelistMatch.contentType & RegExpFilter.typeMap.DOCUMENT) ? "DOCUMENT" : "ELEMHIDE"; |
+ let whitelistType = (match.contentType & RegExpFilter.typeMap.DOCUMENT) ? "DOCUMENT" : "ELEMHIDE"; |
return [i, whitelistType, parentDocDomain, false, wndLocation, match]; |
} |
if (!nogenericHit) |
{ |
match = defaultMatcher.matchesAny(wndLocation, |
RegExpFilter.typeMap[genericType], parentDocDomain, false, sitekey); |
if (match instanceof WhitelistFilter) |