Bug 1349742 - avoid initializing UITour whenever about:home is loaded, r=MattN.

This commit is contained in:
Florian Queze 2017-04-19 13:37:09 +02:00
parent b737881864
commit 6a5b7fdb1f

View File

@ -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;
},