mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1349742 - avoid initializing UITour whenever about:home is loaded, r=MattN.
This commit is contained in:
parent
b737881864
commit
6a5b7fdb1f
@ -662,7 +662,12 @@ this.UITour = {
|
||||
}
|
||||
}
|
||||
|
||||
this.initForBrowser(browser, window);
|
||||
// For performance reasons, only call initForBrowser if we did something
|
||||
// that will require a teardownTourForBrowser call later.
|
||||
// getConfiguration (called from about:home) doesn't require any future
|
||||
// uninitialization.
|
||||
if (action != "getConfiguration")
|
||||
this.initForBrowser(browser, window);
|
||||
|
||||
return true;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user