Bug 335864: don't delete state information when _loadState == STATE_QUITTING (fixes sessionstore), patch by Simon Bünzli <zeniko@gmail.com>, r=mconnor

git-svn-id: svn://10.0.0.236/trunk@198995 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com 2006-06-04 07:07:42 +00:00
parent 20715f6976
commit 49f2819d74

View File

@ -477,12 +477,13 @@ SessionStoreService.prototype = {
this._closedWindows.unshift(this._lastWindowClosed);
this._closedWindows.splice(this._getPref("sessionstore.max_windows_undo", DEFAULT_MAX_WINDOWS_UNDO));
// clear this window from the list
delete this._windows[aWindow.__SSi];
// save the state without this window to disk
this.saveStateDelayed();
}
// clear this window from the list
delete this._windows[aWindow.__SSi];
delete aWindow.__SSi;
},