зеркало из https://github.com/mozilla/pjs.git
Bug 415484 ? Form data isn't saved at shutdown (for zeniko, r=dietrich)
This commit is contained in:
Родитель
7368bb6148
Коммит
972640cdaa
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче