B2G/gecko/browser/base/content/browser.js
// simulate all change notifications after switching tabs
simulate all change notifications after switching tabs
simulate all change notifications after switching tabs
function XWB_onUpdateCurrentBrowser(aStateFlags, aStatus, aMessage, aTotalProgress) {
    if (FullZoom.updateBackgroundTabs)
      FullZoom.onLocationChange(gBrowser.currentURI, true);
    var nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
    var loadingDone = aStateFlags & nsIWebProgressListener.STATE_STOP;
    this.onStateChange(
      gBrowser.webProgress,
      { URI: gBrowser.currentURI },
      loadingDone ? nsIWebProgressListener.STATE_STOP : nsIWebProgressListener.STATE_START,
      aStatus
    );
    if (loadingDone)
      return;
    this.onStatusChange(gBrowser.webProgress, null, 0, aMessage);
  }
function XWB_onUpdateCurrentBrowser ( aStateFlags , aStatus , aMessage , aTotalProgress ) { if ( FullZoom . updateBackgroundTabs ) FullZoom . onLocationChange ( gBrowser . currentURI , true ) ; var nsIWebProgressListener = Components . interfaces . nsIWebProgressListener ; var loadingDone = aStateFlags & nsIWebProgressListener . STATE_STOP ; this . onStateChange ( gBrowser . webProgress , { URI : gBrowser . currentURI } , loadingDone ? nsIWebProgressListener . STATE_STOP : nsIWebProgressListener . STATE_START , aStatus ) ; if ( loadingDone ) return ; this . onStatusChange ( gBrowser . webProgress , null , 0 , aMessage ) ; }
simulate all change notifications after switching tabs
simulate all change notifications after switching tabs
// use a pseudo-object instead of a (potentially nonexistent) channel for getting // a correct error message - and make sure that the UI is always either in // loading (STATE_START) or done (STATE_STOP) mode // status message and progress value are undefined if we're done with loading