B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * Replace "Loading..." with the tab label (with minimal side-effects)
   * @param aString is the string the title is stored in
   * @param aTabbrowser is a tabbrowser object, containing aTab
   * @param aTab is the tab whose title we're updating & using
   *
   * @returns aString that has been updated with the new title
   */
Replace "Loading..." with the tab label (with minimal side-effects)
@param aString is the string the title is stored in
@param aTabbrowser is a tabbrowser object, containing aTab
@param aTab is the tab whose title we're updating & using

@returns aString that has been updated with the new title
Replace " Loading ... " with the tab label ( with minimal side - effects ) @param aString is the string the title is stored in @param aTabbrowser is a tabbrowser object containing aTab @param aTab is the tab whose title we ' re updating & using @returns aString that has been updated with the new title
function ssi_replaceLoadingTitle(aString, aTabbrowser, aTab) {
    if (aString == aTabbrowser.mStringBundle.getString("tabs.connecting")) {
      aTabbrowser.setTabTitle(aTab);
      [aString, aTab.label] = [aTab.label, aString];
    }
    return aString;
  }
function ssi_replaceLoadingTitle ( aString , aTabbrowser , aTab ) { if ( aString == aTabbrowser . mStringBundle . getString ( "tabs.connecting" ) ) { aTabbrowser . setTabTitle ( aTab ) ; [ aString , aTab . label ] = [ aTab . label , aString ] ; } return aString ; }
Replace "Loading..." with the tab label (with minimal side-effects)
 @param aString is the string the title is stored in
 @param aTabbrowser is a tabbrowser object, containing aTab
 @param aTab is the tab whose title we're updating & using
Replace " Loading ... " with the tab label ( with minimal side - effects ) @param aString is the string the title is stored in @param aTabbrowser is a tabbrowser object containing aTab @param aTab is the tab whose title we ' re updating & using