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
Родитель ffa7115400
Коммит ce74290c1d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;