Commit f09ed443 authored by Ehsan Akhgari's avatar Ehsan Akhgari
Browse files

Bug 463188 - Restore user's session at startup if they quit Firefox during...

Bug 463188 - Restore user's session at startup if they quit Firefox during Private Browsing mode; r=zeniko ui-r=faaborg a1.9.1b2=mconnor
parent 16d0ef18
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -344,6 +344,9 @@ SessionStoreService.prototype = {
        win.setTimeout(function() { _this.saveState(true); }, 0);
      else if (this._loadState == STATE_RUNNING)
        this.saveState(true);
      // Delete the private browsing backed up state, if any
      if ("_stateBackup" in this)
        delete this._stateBackup;
      break;
    case "nsPref:changed": // catch pref changes
      switch (aData) {
@@ -398,6 +401,8 @@ SessionStoreService.prototype = {

            this._saveStateObject(oState);
          }
          // make sure to restore the non-private session upon resuming
          this._prefBranch.setBoolPref("sessionstore.resume_session_once", true);
        }
        else
          this._inPrivateBrowsing = false;