Bug 590465 - start page option Blank Page changed after restart [r=vingtetun]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 25 Aug 2010 10:34:51 -0400
changeset 66487 6a49a3cba0bc30014aeeebecd958e64dff0ca025
parent 66486 742a67409c3f9ca90a175a246c966be050728f6b
child 66488 9f5213769bf782e1758e5351ff333e983b42e66b
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs590465
Bug 590465 - start page option Blank Page changed after restart [r=vingtetun]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -401,19 +401,19 @@ var BrowserUI = {
     // listening escape to dismiss dialog on VK_ESCAPE
     window.addEventListener("keypress", this, true);
 
     // listening AppCommand to handle special keys
     window.addEventListener("AppCommand", this, true);
 
     // Push the panel initialization out of the startup path
     // (Using a message because we have no good way to delay-init [Bug 535366])
-    messageManager.addMessageListener("DOMContentLoaded", function() {
+    messageManager.addMessageListener("pageshow", function() {
       // We only want to delay one time
-      messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true);
+      messageManager.removeMessageListener("pageshow", arguments.callee, true);
 
       // We unhide the panelUI so the XBL and settings can initialize
       Elements.panelUI.hidden = false;
 
       // Init the views
       ExtensionsView.init();
       DownloadsView.init();
       PreferencesView.init();