From 7e53876837dd5f7f97a03c92ef526c50b4fdc5ff Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Tue, 25 Sep 2007 00:38:03 +0000 Subject: [PATCH] nsIComponentManager API Changes (bug 98553) a) create a new nsIComponentManager with only four functions on it: CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID. b) rename the old nsIComponentManager to nsIComponentManagerObsolete. c) fixes callers which use to access the nsIComponentManager for component registration functionality. These callers will temporary use the nsIComponentManagerObsolete interface. d) Create a new API NS_GetComponentManager() which mirrors the NS_GetServiceManager() e) Perserves the old NS_GetGlobalComponentManager(). Note the cast usage. r/sr = rpotts@netscape.com alecf@netscape.com brendan@mozilla.org git-svn-id: svn://10.0.0.236/trunk@236613 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/sidebar/nsSidebar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/suite/common/sidebar/nsSidebar.js b/mozilla/suite/common/sidebar/nsSidebar.js index 927bfb0b72c..a7c9c4427e0 100644 --- a/mozilla/suite/common/sidebar/nsSidebar.js +++ b/mozilla/suite/common/sidebar/nsSidebar.js @@ -345,6 +345,8 @@ sidebarModule.registerSelf = function (compMgr, fileSpec, location, type) { debug("registering (all right -- a JavaScript module!)"); + compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); + compMgr.registerComponentWithType(SIDEBAR_CID, "Sidebar JS Component", SIDEBAR_CONTRACTID, fileSpec, location, true, true, type);