Index: lib/child/contentPolicy.js |
=================================================================== |
--- a/lib/child/contentPolicy.js |
+++ b/lib/child/contentPolicy.js |
@@ -63,30 +63,30 @@ let types = new Map(); |
*/ |
function processPolicyResponse(window, node, response) |
{ |
if (typeof response == "undefined") |
return true; |
let {allow, collapse, hits} = response; |
let isObject = false; |
- for (let {frameIndex, contentType, docDomain, thirdParty, location, filter} of hits) |
+ for (let hit of hits) |
{ |
- if (contentType == "OBJECT") |
+ if (hit.contentType == "OBJECT") |
isObject = true; |
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 && isObject) |
{ |
node.addEventListener("mouseover", objectMouseEventHander, true); |