зеркало из https://github.com/mozilla/gecko-dev.git
Bug 964510 - Send a delayed startup notification in Fennec. r=mfinkle
This commit is contained in:
Родитель
821fefc764
Коммит
0f7f40856f
|
@ -306,6 +306,13 @@ var BrowserApp = {
|
|||
dump("zerdatime " + Date.now() + " - browser chrome startup finished.");
|
||||
|
||||
this.deck = document.getElementById("browsers");
|
||||
this.deck.addEventListener("DOMContentLoaded", function BrowserApp_delayedStartup() {
|
||||
try {
|
||||
BrowserApp.deck.removeEventListener("DOMContentLoaded", BrowserApp_delayedStartup, false);
|
||||
Services.obs.notifyObservers(window, "browser-delayed-startup-finished", "");
|
||||
} catch(ex) { console.log(ex); }
|
||||
}, false);
|
||||
|
||||
BrowserEventHandler.init();
|
||||
ViewportHandler.init();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче