Index: lib/utils.js |
=================================================================== |
--- a/lib/utils.js |
+++ b/lib/utils.js |
@@ -205,36 +205,16 @@ let Utils = exports.Utils = |
* @param {function} callback |
*/ |
runAsync: function(callback) |
{ |
Services.tm.currentThread.dispatch(callback, Ci.nsIEventTarget.DISPATCH_NORMAL); |
}, |
/** |
- * Gets the DOM window associated with a particular request (if any). |
- */ |
- getRequestWindow: function(/**nsIChannel*/ channel) /**nsIDOMWindow*/ |
- { |
- try |
- { |
- if (channel.notificationCallbacks) |
- return channel.notificationCallbacks.getInterface(Ci.nsILoadContext).associatedWindow; |
- } catch(e) {} |
- |
- try |
- { |
- if (channel.loadGroup && channel.loadGroup.notificationCallbacks) |
- return channel.loadGroup.notificationCallbacks.getInterface(Ci.nsILoadContext).associatedWindow; |
- } catch(e) {} |
- |
- return null; |
- }, |
- |
- /** |
* Generates filter subscription checksum. |
* |
* @param {string[]} lines filter subscription lines (with checksum line removed) |
* @return {String} checksum or null |
*/ |
generateChecksum: function(lines) |
{ |
let stream = null; |