Bug 347336 [SessionStore] Preserve the list of recently closed tabs during one session - fixes regression (r=mconnor)

This commit is contained in:
dietrich%mozilla.com 2006-08-26 05:52:49 +00:00
parent 08472c75f4
commit 4298e9d857

View File

@ -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]) {