mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Bug 347336 [SessionStore] Preserve the list of recently closed tabs during one session - fixes regression (r=mconnor)
This commit is contained in:
parent
08472c75f4
commit
4298e9d857
@ -1177,6 +1177,10 @@ SessionStoreService.prototype = {
|
||||
* bool overwrite existing tabs w/ new ones
|
||||
*/
|
||||
restoreWindow: function sss_restoreWindow(aWindow, aState, aOverwriteTabs) {
|
||||
// initialize window if necessary
|
||||
if (aWindow && (!aWindow.__SSi || !this._windows[aWindow.__SSi]))
|
||||
this.onLoad(aWindow);
|
||||
|
||||
try {
|
||||
var root = typeof aState == "string" ? this._safeEval(aState) : aState;
|
||||
if (!root.windows[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user