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

Unified Diff: lib/child/elemHide.js

Issue 29356087: Issue 4497 - Move Utils.getRequestWindow() into child/utils.js (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created Oct. 6, 2016, 12:18 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 | « lib/child/contentPolicy.js ('k') | lib/child/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « lib/child/contentPolicy.js ('k') | lib/child/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld