Bug 1227444 - Remove a closed window from _windows right away without waiting for a flush to complete. r=billm

--HG--
extra : commitid : 5yAy0HdlN7x
extra : rebase_source : cdcdf99e6d7360f00e8649994179c428378576e7
extra : amend_source : f33259c41791f4b5cce1e9eac4f59eb2356fa91f
This commit is contained in:
Mike Conley 2015-11-24 18:11:33 -05:00
Родитель d464a0a985
Коммит ecf6aa3019
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1246,6 +1246,9 @@ var SessionStoreInternal = {
// we don't want to save the busy state
delete winData.busy;
// clear this window from the list, since it has definitely been closed.
delete this._windows[aWindow.__SSi];
// Now we have to figure out if this window is worth saving in the _closedWindows
// Object.
//
@ -1291,8 +1294,6 @@ var SessionStoreInternal = {
this.maybeSaveClosedWindow(winData);
}
// clear this window from the list
delete this._windows[aWindow.__SSi];
// Update the tabs data now that we've got the most
// recent information.
this.cleanUpWindow(aWindow, winData);