B2G/gecko/browser/base/content/browser-tabview.js
// nothing if we already did that once in the past.
nothing if we already did that once in the past.
nothing if we already did that once in the past .
function TabView_enableSessionRestore() {
    if (!this._window || !this.firstUseExperienced)
      return;
    if (this.sessionRestoreEnabledOnce)
      return;
    this.sessionRestoreEnabledOnce = true;
    if (Services.prefs.getIntPref(this.PREF_STARTUP_PAGE) != 3) {
      Services.prefs.setIntPref(this.PREF_STARTUP_PAGE, 3);
      this._window.UI.notifySessionRestoreEnabled();
    }
  }
function TabView_enableSessionRestore ( ) { if ( ! this . _window || ! this . firstUseExperienced ) return ; if ( this . sessionRestoreEnabledOnce ) return ; this . sessionRestoreEnabledOnce = true ; if ( Services . prefs . getIntPref ( this . PREF_STARTUP_PAGE ) != 3 ) { Services . prefs . setIntPref ( this . PREF_STARTUP_PAGE , 3 ) ; this . _window . UI . notifySessionRestoreEnabled ( ) ; } }
nothing if we already did that once in the past.
nothing if we already did that once in the past .
// do nothing if we already enabled session restore once // enable session restore if necessary // show banner