Index: lib/contentPolicy.js |
=================================================================== |
--- a/lib/contentPolicy.js |
+++ b/lib/contentPolicy.js |
@@ -546,23 +546,16 @@ var PolicyImplementation = |
} catch(e2) {} |
if (!newLocation) |
return; |
let wnd = Utils.getRequestWindow(newChannel); |
if (!wnd) |
return; |
- if (contentType == Policy.type.SUBDOCUMENT && wnd.parent == wnd.top && wnd.opener) |
- { |
- // This is a window opened in a new tab miscategorized as frame load, |
- // see bug 467514. Get the frame as context to be at least consistent. |
- wnd = wnd.opener; |
- } |
- |
if (contentType == Policy.type.POPUP && wnd.opener) |
{ |
// Popups are initiated by their opener, not their own window. |
wnd = wnd.opener; |
} |
if (!Policy.processNode(wnd, wnd.document, contentType, newLocation, false)) |
result = Cr.NS_BINDING_ABORTED; |