mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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:
parent
d464a0a985
commit
ecf6aa3019
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user