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

Unified Diff: lib/whitelisting.js

Issue 29883568: Issue 6954 - Fixed whitelisting checks skipping immediate parent document
Patch Set: Created Sept. 17, 2018, 2:32 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld