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);