Index: lib/elemHideHitRegistration.js |
=================================================================== |
--- a/lib/elemHideHitRegistration.js |
+++ b/lib/elemHideHitRegistration.js |
@@ -119,24 +119,23 @@ HitRegistrationChannel.prototype = { |
try { |
listener.onStopRequest(this, context, Cr.NS_OK); |
} catch(e) {} |
}, this); |
}, |
open: function() |
{ |
- let {Policy} = require("contentPolicy"); |
let {ElemHide} = require("elemHide"); |
let data = "<bindings xmlns='http://www.mozilla.org/xbl'><binding id='dummy'/></bindings>"; |
let filter = ElemHide.getFilterByKey(this.key); |
if (filter) |
{ |
let wnd = Utils.getRequestWindow(this); |
- if (wnd && wnd.document && !Policy.processNode(wnd, wnd.document, Policy.type.ELEMHIDE, filter)) |
+ if (wnd && wnd.document && !ElemHide.shouldAllowLoad(wnd, filter)) |
data = "<bindings xmlns='http://www.mozilla.org/xbl'/>"; |
} |
let stream = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.nsIStringInputStream); |
stream.setData(data, data.length); |
return stream; |
}, |
isPending: function() |