Bug 1371710 - Places should not be initialized before first paint, r=mconley.

This commit is contained in:
Florian Quèze 2017-06-13 08:39:38 +02:00
Родитель 6b92cb978e
Коммит bfe09ec4ed
1 изменённых файлов: 8 добавлений и 8 удалений

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

@ -601,7 +601,6 @@ BrowserGlue.prototype = {
// runs on startup, before the first command line handler is invoked
// (i.e. before the first window is opened)
_finalUIStartup: function BG__finalUIStartup() {
this._sanitizer.onStartup();
// check if we're in safe mode
if (Services.appinfo.inSafeMode) {
Services.ww.openWindow(null, "chrome://browser/content/safeMode.xul",
@ -617,13 +616,6 @@ BrowserGlue.prototype = {
listeners.init();
PageThumbs.init();
DirectoryLinksProvider.init();
NewTabUtils.init();
NewTabUtils.links.addProvider(DirectoryLinksProvider);
AboutNewTab.init();
SessionStore.init();
BrowserUsageTelemetry.init();
BrowserUITelemetry.init();
@ -974,6 +966,13 @@ BrowserGlue.prototype = {
WeaveService.init();
}
PageThumbs.init();
DirectoryLinksProvider.init();
NewTabUtils.init();
NewTabUtils.links.addProvider(DirectoryLinksProvider);
AboutNewTab.init();
this._firstWindowTelemetry(aWindow);
this._firstWindowLoaded();
@ -1180,6 +1179,7 @@ BrowserGlue.prototype = {
}
}
this._sanitizer.onStartup();
E10SAccessibilityCheck.onWindowsRestored();
},