gorhill 2017-04-01 16:22:34 -04:00
parent 9f4a879bca
commit 5699e85afa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 6 additions and 6 deletions

View File

@ -95,12 +95,12 @@ function getWindowlessBrowserFrame(appShell) {
let XPCOMUtils = Components.utils.import('resource://gre/modules/XPCOMUtils.jsm', null).XPCOMUtils; let XPCOMUtils = Components.utils.import('resource://gre/modules/XPCOMUtils.jsm', null).XPCOMUtils;
windowlessBrowserPL = { windowlessBrowserPL = {
QueryInterface: XPCOMUtils.generateQI([ QueryInterface: XPCOMUtils.generateQI([
Ci.nsIWebProgressListener, Ci.nsIWebProgressListener2, Ci.nsIWebProgressListener,
Ci.nsISupportsWeakReference]), Ci.nsIWebProgressListener2,
onStateChange(wbp, request, stateFlags/*, status*/) { Ci.nsISupportsWeakReference
if ( !request ) { ]),
return; onStateChange: function(wbp, request, stateFlags/*, status*/) {
} if ( !request ) { return; }
if ( stateFlags & Ci.nsIWebProgressListener.STATE_STOP ) { if ( stateFlags & Ci.nsIWebProgressListener.STATE_STOP ) {
webProgress.removeProgressListener(windowlessBrowserPL); webProgress.removeProgressListener(windowlessBrowserPL);
windowlessBrowserPL = null; windowlessBrowserPL = null;