| Index: lib/child/requestNotifier.js |
| =================================================================== |
| --- a/lib/child/requestNotifier.js |
| +++ b/lib/child/requestNotifier.js |
| @@ -23,17 +23,17 @@ let {Services} = Cu.import("resource://g |
| let {Utils} = require("utils"); |
| let nodeData = new WeakMap(); |
| let windowStats = new WeakMap(); |
| let requestEntryMaxId = 0; |
| /** |
| * Active RequestNotifier instances by their ID |
| - * @type Map |
| + * @type Map.<number,RequestNotifier> |
| */ |
| let notifiers = new Map(); |
| addMessageListener("AdblockPlus:StartWindowScan", onStartScan); |
| addMessageListener("AdblockPlus:ShutdownNotifier", onNotifierShutdown); |
| onShutdown.add(() => { |
| removeMessageListener("AdblockPlus:StartWindowScan", onStartScan); |
| @@ -166,17 +166,17 @@ RequestNotifier.prototype = |
| * @param {Node} node node to attach data to |
| * @param {Window} topWnd top-level window the node belongs to |
| * @param {String} contentType request type, e.g. "IMAGE" |
| * @param {String} docDomain domain of the document that initiated the request |
| * @param {Boolean} thirdParty will be true if a third-party server has been requested |
| * @param {String} location the address that has been requested |
| * @param {Filter} filter filter applied to the request or null if none |
| */ |
| -RequestNotifier.addNodeData = function(/**Node*/ node, /**Window*/ topWnd, /**String*/ contentType, /**String*/ docDomain, /**Boolean*/ thirdParty, /**String*/ location, /**Filter*/ filter) |
| +RequestNotifier.addNodeData = function(node, topWnd, contentType, docDomain, thirdParty, location, filter) |
| { |
| let entry = { |
| id: ++requestEntryMaxId, |
| type: contentType, |
| docDomain, thirdParty, location, filter |
| }; |
| let existingData = nodeData.get(node); |