Don't clear session when "clear on shutdown" is set if we're actually just doing a restart. b=487219 r=zeniko

This commit is contained in:
Johnathan Nightingale 2009-05-20 09:27:25 -04:00
parent c6534bd851
commit eeac6d3610

View File

@ -326,8 +326,10 @@ SessionStoreService.prototype = {
this._loadState = STATE_QUITTING;
break;
case "quit-application":
if (aData == "restart")
if (aData == "restart") {
this._prefBranch.setBoolPref("sessionstore.resume_session_once", true);
this._clearingOnShutdown = false;
}
this._loadState = STATE_QUITTING; // just to be sure
this._uninit();
break;