зеркало из https://github.com/mozilla/pjs.git
Bug 603272 - starting private browsing from the taskbar button in Win7 doesn't launch Minefield; r=zpao a=gavin
This commit is contained in:
Родитель
42b835272a
Коммит
28f0c39d50
|
@ -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);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче