From 276a1dfa1b5d3eb079be831c9e457bac3c70188c Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 1 Apr 2017 16:26:23 -0400 Subject: [PATCH] fix https://github.com/gorhill/uBlock/issues/2502#issuecomment-290943606 --- platform/firefox/bootstrap.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index 6322534..44644cc 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -101,12 +101,12 @@ function getWindowlessBrowserFrame(appShell) { let XPCOMUtils = Components.utils.import('resource://gre/modules/XPCOMUtils.jsm', null).XPCOMUtils; windowlessBrowserPL = { QueryInterface: XPCOMUtils.generateQI([ - Ci.nsIWebProgressListener, Ci.nsIWebProgressListener2, - Ci.nsISupportsWeakReference]), - onStateChange(wbp, request, stateFlags, status) { - if ( !request ) { - return; - } + Ci.nsIWebProgressListener, + Ci.nsIWebProgressListener2, + Ci.nsISupportsWeakReference + ]), + onStateChange: function(wbp, request, stateFlags, status) { + if ( !request ) { return; } if ( stateFlags & Ci.nsIWebProgressListener.STATE_STOP ) { webProgress.removeProgressListener(windowlessBrowserPL); windowlessBrowserPL = null;