| Index: lib/child/elemHide.js |
| =================================================================== |
| --- a/lib/child/elemHide.js |
| +++ b/lib/child/elemHide.js |
| @@ -31,17 +31,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 {shouldAllowAsync} = require("child/contentPolicy"); |
| -let {getFrames, isPrivate} = require("child/utils"); |
| +let {getFrames, isPrivate, getRequestWindow} = require("child/utils"); |
| let {RequestNotifier} = require("child/requestNotifier"); |
| let {port} = require("messaging"); |
| let {Utils} = require("utils"); |
| const notImplemented = () => Cr.NS_ERROR_NOT_IMPLEMENTED; |
| /** |
| * about: URL module used to count hits. |
| @@ -263,17 +263,17 @@ function HitRegistrationChannel(uri, loa |
| } |
| HitRegistrationChannel.prototype = { |
| __proto__: BaseChannel.prototype, |
| key: null, |
| contentType: "text/xml", |
| _getResponse: function() |
| { |
| - let window = Utils.getRequestWindow(this); |
| + let window = getRequestWindow(this); |
| port.emitWithResponse("registerElemHideHit", { |
| key: this.key, |
| frames: getFrames(window), |
| isPrivate: isPrivate(window) |
| }).then(hit => |
| { |
| if (hit) |
| RequestNotifier.addNodeData(window.document, window.top, hit); |