Index: lib/whitelisting.js |
=================================================================== |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -65,15 +65,14 @@ |
{ |
while (frame) |
{ |
- let parentFrame = frame.parent; |
let filter = match(page, frame.url, typeMask, |
- extractHostFromFrame(parentFrame, originUrl), |
+ extractHostFromFrame(frame, originUrl), |
getKey(page, frame, originUrl)); |
if (filter) |
return filter; |
- frame = parentFrame; |
+ frame = frame.parent; |
} |
return originUrl && match(page, originUrl, typeMask, null, |