Bug 566905 - Open the Addon Manager in a tab. r=KaiRo, sr=Neil
authorJustin Wood <Callek@gmail.com>
Wed, 19 May 2010 17:04:07 -0400
changeset 5707 82881387bed11ae5cf43fb38ffc0f544f7b1c978
parent 5706 f874ab022f1cec3bd58fcda5824ba7fdf2950f23
child 5708 2c9ffd5cdc8a9eb1392219994ff6eecbb7eefeee
push id4422
push userCallek@gmail.com
push dateWed, 19 May 2010 21:06:38 +0000
treeherdercomm-central@b750da3cd889 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKaiRo, Neil
bugs566905
Bug 566905 - Open the Addon Manager in a tab. r=KaiRo, sr=Neil [Suite]
suite/common/tasksOverlay.js
--- a/suite/common/tasksOverlay.js
+++ b/suite/common/tasksOverlay.js
@@ -78,33 +78,19 @@ function toDownloadManager()
     dlUI.showManager(window);
   } else {
     dlUI.show(window);
   }
 }
   
 function toEM( aPane )
 {
-  //XXXCallek Open this in a tab
-  var theEM = Components.classes["@mozilla.org/appshell/window-mediator;1"]
-                        .getService(Components.interfaces.nsIWindowMediator)
-                        .getMostRecentWindow("Extension:Manager");
-  if (theEM) {
-    theEM.focus();
-    if (aPane)
-      theEM.showView(aPane);
-    return;
-  }
-
-  const EMURL = "chrome://mozapps/content/extensions/extensions.xul";
-  const EMFEATURES = "all,dialog=no";
-  if (aPane)
-    window.openDialog(EMURL, "", EMFEATURES, aPane);
-  else
-    window.openDialog(EMURL, "", EMFEATURES);
+  //XXXCallek Don't let more than one tab have this
+  //XXXCallek Use aPane once Bug 560449 is fixed
+  goAbout("addons");
 }
 
 function toBookmarksManager()
 {
   toOpenWindowByType("bookmarks:manager",
                      "chrome://communicator/content/bookmarks/bookmarksManager.xul");
 }