Bug 415484 ? Form data isn't saved at shutdown (for zeniko, r=dietrich)

This commit is contained in:
dietrich%mozilla.com 2008-02-04 18:04:48 +00:00
Родитель 7368bb6148
Коммит 972640cdaa
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -483,10 +483,6 @@ SessionStoreService.prototype = {
tabbrowser.removeEventListener("TabClose", this, true);
tabbrowser.removeEventListener("TabSelect", this, true);
for (var i = 0; i < tabpanels.childNodes.length; i++) {
this.onTabRemove(aWindow, tabpanels.childNodes[i], true);
}
if (this._loadState == STATE_RUNNING) { // window not closed during a regular shut-down
// update all window data for a last time
this._collectWindowData(aWindow);
@ -503,6 +499,10 @@ SessionStoreService.prototype = {
this.saveStateDelayed();
}
for (var i = 0; i < tabpanels.childNodes.length; i++) {
this.onTabRemove(aWindow, tabpanels.childNodes[i], true);
}
// cache the window state until the window is completely gone
aWindow.__SS_dyingCache = this._windows[aWindow.__SSi] || this._lastWindowClosed;