mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1063594 - main-pane-loaded notification should be sent at the end of gMainPane.init. r=jaws
This commit is contained in:
parent
0007621071
commit
8e15820a39
@ -60,14 +60,8 @@ var gMainPane = {
|
||||
|
||||
this.updateBrowserStartupLastSession();
|
||||
|
||||
// Notify observers that the UI is now ready
|
||||
Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService)
|
||||
.notifyObservers(window, "main-pane-loaded", null);
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Functionality for "Show tabs in taskbar" on Windows 7 and up.
|
||||
|
||||
try {
|
||||
let sysInfo = Cc["@mozilla.org/system-info;1"].
|
||||
getService(Ci.nsIPropertyBag2);
|
||||
@ -75,7 +69,6 @@ var gMainPane = {
|
||||
let showTabsInTaskbar = document.getElementById("showTabsInTaskbar");
|
||||
showTabsInTaskbar.hidden = ver < 6.1;
|
||||
} catch (ex) {}
|
||||
|
||||
#endif
|
||||
|
||||
setEventListener("browser.privatebrowsing.autostart", "change",
|
||||
@ -94,6 +87,11 @@ var gMainPane = {
|
||||
gMainPane.restoreDefaultHomePage);
|
||||
setEventListener("chooseFolder", "command",
|
||||
gMainPane.chooseFolder);
|
||||
|
||||
// Notify observers that the UI is now ready
|
||||
Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService)
|
||||
.notifyObservers(window, "main-pane-loaded", null);
|
||||
},
|
||||
|
||||
// HOME PAGE
|
||||
|
Loading…
Reference in New Issue
Block a user