Bug 484130: Extensions don't load as expected, r=gavin
authorMark Finkle <mfinkle@mozilla.com>
Thu, 19 Mar 2009 22:31:08 -0500
changeset 65131 ae7b02ce0e34ac02ec5ffb9068a6063bfece39b0
parent 65130 32f7b1800a7dacac9d0729430daa66f6e62050cd
child 65132 b70df35d4890e43fc67788afffabc308c0a86701
push idunknown
push userunknown
push dateunknown
reviewersgavin
bugs484130
Bug 484130: Extensions don't load as expected, r=gavin
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -988,19 +988,23 @@ const gXPInstallObserver = {
           messageString = browserBundle.getFormattedString("xpinstallPromptWarning",
                                                            [brandShortName, host]);
 
           buttons = [{
             label: browserBundle.getString("xpinstallPromptAllowButton"),
             accessKey: browserBundle.getString("xpinstallPromptAllowButton.accesskey"),
             popup: null,
             callback: function() {
-              // Force the addon manager panel to appear
-              CommandUpdater.doCommand("cmd_addons");
+              // Force the addon manager panel to appear. We do this so the
+              // xptinstall and download observers in the add-ons manager can
+              // complete the installation
+              BrowserUI.show(UIMODE_PANEL);
+              BrowserUI.switchPane("addons-container");
 
+              // Kick off the xptinstall
               var mgr = Cc["@mozilla.org/xpinstall/install-manager;1"].createInstance(Ci.nsIXPInstallManager);
               mgr.initManagerWithInstallInfo(installInfo);
               return false;
             }
           }];
         }
 
         var nBox = Browser.getNotificationBox();