B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * On private browsing change granted
   * @param aData
   *        String whether to enter or exit private browsing
   */
On private browsing change granted
@param aData
String whether to enter or exit private browsing
On private browsing change granted @param aData String whether to enter or exit private browsing
function ssi_onPrivateBrowsingChangeGranted(aData) {
    if (aData == "enter") {
      this.saveState(true);
      this._stateBackup = JSON.parse(this._toJSONString(this._getCurrentState(true)));
    }
    this._resetRestoringState();
    this._clearRestoringWindows();
  }
function ssi_onPrivateBrowsingChangeGranted ( aData ) { if ( aData == "enter" ) { this . saveState ( true ) ; this . _stateBackup = JSON . parse ( this . _toJSONString ( this . _getCurrentState ( true ) ) ) ; } this . _resetRestoringState ( ) ; this . _clearRestoringWindows ( ) ; }
On private browsing change granted
 @param aData
        String whether to enter or exit private browsing
On private browsing change granted @param aData String whether to enter or exit private browsing
// We stringify & parse the current state so that we have have an object // that won't change. _getCurrentState returns an object with references // to objects that can change (specifically this._windows[x]). // Make sure _tabsToRestore is cleared. It will be repopulated when // entering/exiting private browsing (by calls to setBrowserState).