Bug 603272 - starting private browsing from the taskbar button in Win7 doesn't launch Minefield; r=zpao a=gavin

This commit is contained in:
Ehsan Akhgari 2010-11-04 16:21:33 -04:00
Родитель 42b835272a
Коммит 28f0c39d50
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -367,10 +367,14 @@ SessionStoreService.prototype = {
/**
* Start tracking a window.
* Important note: despite its name, this function doesn't initialize
* the component!
* This function also initializes the component if it's not already
* initialized.
*/
init: function sss_init(aWindow) {
// Initialize the service if needed.
if (!this._initialized)
this.initService();
if (!aWindow || this._loadState == STATE_RUNNING) {
// make sure that all browser windows which try to initialize
// SessionStore are really tracked by it
@ -386,10 +390,6 @@ SessionStoreService.prototype = {
return;
}
// Initialize the service if needed.
if (!this._initialized)
this.initService();
// As this is called at delayedStartup, restoration must be initiated here
this.onLoad(aWindow);
},