Index: lib/child/contentPolicy.js |
=================================================================== |
--- a/lib/child/contentPolicy.js |
+++ b/lib/child/contentPolicy.js |
@@ -34,17 +34,17 @@ catch (e) |
Cu.reportError(e); |
} |
let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); |
let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
let {port} = require("messaging"); |
let {Utils} = require("utils"); |
-let {getFrames, isPrivate} = require("child/utils"); |
+let {getFrames, isPrivate, getRequestWindow} = require("child/utils"); |
let {objectMouseEventHander} = require("child/objectTabs"); |
let {RequestNotifier} = require("child/requestNotifier"); |
/** |
* Randomly generated class name, to be applied to collapsed nodes. |
* @type Promise.<string> |
*/ |
let collapsedClass = port.emitWithResponse("getCollapsedClass"); |
@@ -401,17 +401,17 @@ var PolicyImplementation = |
// nsILoadInfo.contentPolicyType was introduced in Gecko 35, then |
// renamed to nsILoadInfo.externalContentPolicyType in Gecko 44. |
let loadInfo = oldChannel.loadInfo; |
let contentType = ("externalContentPolicyType" in loadInfo ? |
loadInfo.externalContentPolicyType : loadInfo.contentPolicyType); |
if (!contentType) |
return; |
- let wnd = Utils.getRequestWindow(newChannel); |
+ let wnd = getRequestWindow(newChannel); |
if (!wnd) |
return; |
if (contentType == Ci.nsIContentPolicy.TYPE_DOCUMENT) |
{ |
if (wnd.history.length <= 1 && wnd.opener) |
{ |
// Special treatment for pop-up windows - this will close the window |