B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * Add the tabs progress listener to the window if it isn't already
   *
   * @param aWindow
   *        The window to add our progress listener to
   */
Add the tabs progress listener to the window if it isn't already
@param aWindow
The window to add our progress listener to
Add the tabs progress listener to the window if it isn ' t already @param aWindow The window to add our progress listener to
function ssi_ensureTabsProgressListener(aWindow) {
    let tabbrowser = aWindow.gBrowser;
    if (tabbrowser.mTabsProgressListeners.indexOf(gRestoreTabsProgressListener) == -1)
      tabbrowser.addTabsProgressListener(gRestoreTabsProgressListener);
  }
function ssi_ensureTabsProgressListener ( aWindow ) { let tabbrowser = aWindow . gBrowser ; if ( tabbrowser . mTabsProgressListeners . indexOf ( gRestoreTabsProgressListener ) == - 1 ) tabbrowser . addTabsProgressListener ( gRestoreTabsProgressListener ) ; }
Add the tabs progress listener to the window if it isn't already
 @param aWindow
        The window to add our progress listener to
Add the tabs progress listener to the window if it isn ' t already @param aWindow The window to add our progress listener to