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
Родитель 1af67482dd
Коммит aea5fe3e86
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

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