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

git-svn-id: svn://10.0.0.236/trunk@208503 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dietrich%mozilla.com 2006-08-26 05:52:49 +00:00
parent 2737917ea1
commit ae140e2d50

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