| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2014 Eyeo GmbH | 3  * Copyright (C) 2006-2014 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 119       try { | 119       try { | 
| 120         listener.onStopRequest(this, context, Cr.NS_OK); | 120         listener.onStopRequest(this, context, Cr.NS_OK); | 
| 121       } catch(e) {} | 121       } catch(e) {} | 
| 122     }, this); | 122     }, this); | 
| 123   }, | 123   }, | 
| 124 | 124 | 
| 125   open: function() | 125   open: function() | 
| 126   { | 126   { | 
| 127     let {Policy} = require("contentPolicy"); | 127     let {Policy} = require("contentPolicy"); | 
| 128     let {ElemHide} = require("elemHide"); | 128     let {ElemHide} = require("elemHide"); | 
| 129     let data = "<bindings xmlns='http://www.mozilla.org/xbl'><binding id='dummy'
     /></bindings>"; | 129     let data = "<bindings xmlns='http://www.mozilla.org/xbl'><binding id='dummy'
      bindToUntrustedContent='true'/></bindings>"; | 
| 130     let filter = ElemHide.getFilterByKey(this.key); | 130     let filter = ElemHide.getFilterByKey(this.key); | 
| 131     if (filter) | 131     if (filter) | 
| 132     { | 132     { | 
| 133       let wnd = Utils.getRequestWindow(this); | 133       let wnd = Utils.getRequestWindow(this); | 
| 134       if (wnd && wnd.document && !Policy.processNode(wnd, wnd.document, Policy.t
     ype.ELEMHIDE, filter)) | 134       if (wnd && wnd.document && !Policy.processNode(wnd, wnd.document, Policy.t
     ype.ELEMHIDE, filter)) | 
| 135         data = "<bindings xmlns='http://www.mozilla.org/xbl'/>"; | 135         data = "<bindings xmlns='http://www.mozilla.org/xbl'/>"; | 
| 136     } | 136     } | 
| 137 | 137 | 
| 138     let stream = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.n
     sIStringInputStream); | 138     let stream = Cc["@mozilla.org/io/string-input-stream;1"].createInstance(Ci.n
     sIStringInputStream); | 
| 139     stream.setData(data, data.length); | 139     stream.setData(data, data.length); | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 151   { | 151   { | 
| 152     throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 152     throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 
| 153   }, | 153   }, | 
| 154   resume: function() | 154   resume: function() | 
| 155   { | 155   { | 
| 156     throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 156     throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 
| 157   }, | 157   }, | 
| 158 | 158 | 
| 159   QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]) | 159   QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]) | 
| 160 }; | 160 }; | 
| OLD | NEW | 
|---|