B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * Attempt to remove the tabs progress listener from the window.
   *
   * @param aWindow
   *        The window from which to remove our progress listener from
   */
Attempt to remove the tabs progress listener from the window.
@param aWindow
The window from which to remove our progress listener from
Attempt to remove the tabs progress listener from the window . @param aWindow The window from which to remove our progress listener from
function ssi_removeTabsProgressListener(aWindow) {
    if (!aWindow.__SS_tabsToRestore)
      aWindow.gBrowser.removeTabsProgressListener(gRestoreTabsProgressListener);
  }
function ssi_removeTabsProgressListener ( aWindow ) { if ( ! aWindow . __SS_tabsToRestore ) aWindow . gBrowser . removeTabsProgressListener ( gRestoreTabsProgressListener ) ; }
Attempt to remove the tabs progress listener from the window.
Attempt to remove the tabs progress listener from the window .
// If there are no tabs left to restore (or restoring) in this window, then // we can safely remove the progress listener from this window.