Backed out changeset 4df50933e7cb from bug 462973 to investigate Ts

regression.
This commit is contained in:
Dave Townsend 2008-11-07 10:55:25 +00:00
parent 80e27bbde0
commit 652f3b348c

View File

@ -485,19 +485,16 @@ SessionStoreService.prototype = {
this._restoreCount = this._initialState.windows ? this._initialState.windows.length : 0;
this.restoreWindow(aWindow, this._initialState, this._isCmdLineEmpty(aWindow));
delete this._initialState;
// mark ourselves as running
this.saveState(true);
}
else {
// Nothing to restore, notify observers things are complete.
var observerService = Cc["@mozilla.org/observer-service;1"].
getService(Ci.nsIObserverService);
observerService.notifyObservers(null, NOTIFY_WINDOWS_RESTORED, "");
// the next delayed save request should execute immediately
this._lastSaveTime -= this._interval;
}
// mark ourselves as running
this.saveState(true);
}
// this window was opened by _openWindowWithState
else if (!this._isWindowLoaded(aWindow)) {