Index: lib/child/contentPolicy.js |
=================================================================== |
--- a/lib/child/contentPolicy.js |
+++ b/lib/child/contentPolicy.js |
@@ -68,27 +68,27 @@ let types = new Map(); |
let shouldAllow = exports.shouldAllow = function(window, node, contentType, location, callback) |
{ |
function processResponse(response) |
{ |
if (typeof response == "undefined") |
return true; |
let {allow, collapse, hits} = response; |
- for (let {frameIndex, contentType, docDomain, thirdParty, location, filter} of hits) |
+ for (let hit of hits) |
{ |
let context = node; |
- if (typeof frameIndex == "number") |
+ if (typeof hit.frameIndex == "number") |
{ |
context = window; |
- for (let i = 0; i < frameIndex; i++) |
+ for (let i = 0; i < hit.frameIndex; i++) |
context = context.parent; |
context = context.document; |
} |
- RequestNotifier.addNodeData(context, window.top, contentType, docDomain, thirdParty, location, filter); |
+ RequestNotifier.addNodeData(context, window.top, hit); |
} |
if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE) |
{ |
// Track mouse events for objects |
if (allow && contentType == "OBJECT") |
{ |
node.addEventListener("mouseover", objectMouseEventHander, true); |