B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * set up listeners for a new tab
   * @param aWindow
   *        Window reference
   * @param aTab
   *        Tab reference
   * @param aNoNotification
   *        bool Do not save state if we're updating an existing tab
   */
set up listeners for a new tab
@param aWindow
Window reference
@param aTab
Tab reference
@param aNoNotification
bool Do not save state if we're updating an existing tab
set up listeners for a new tab @param aWindow Window reference @param aTab Tab reference @param aNoNotification bool Do not save state if we ' re updating an existing tab
function ssi_onTabAdd(aWindow, aTab, aNoNotification) {
    let browser = aTab.linkedBrowser;
    browser.addEventListener("load", this, true);
    browser.addEventListener("pageshow", this, true);
    browser.addEventListener("change", this, true);
    browser.addEventListener("input", this, true);
    browser.addEventListener("DOMAutoComplete", this, true);
    if (!aNoNotification) {
      this.saveStateDelayed(aWindow);
    }
    this._updateCrashReportURL(aWindow);
  }
function ssi_onTabAdd ( aWindow , aTab , aNoNotification ) { let browser = aTab . linkedBrowser ; browser . addEventListener ( "load" , this , true ) ; browser . addEventListener ( "pageshow" , this , true ) ; browser . addEventListener ( "change" , this , true ) ; browser . addEventListener ( "input" , this , true ) ; browser . addEventListener ( "DOMAutoComplete" , this , true ) ; if ( ! aNoNotification ) { this . saveStateDelayed ( aWindow ) ; } this . _updateCrashReportURL ( aWindow ) ; }
set up listeners for a new tab
 @param aWindow
        Window reference
 @param aTab
        Tab reference
 @param aNoNotification
        bool Do not save state if we're updating an existing tab
set up listeners for a new tab @param aWindow Window reference @param aTab Tab reference @param aNoNotification bool Do not save state if we ' re updating an existing tab