From 5003eaa90c7fd52e059186d5cde5fc32898435ce Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Mon, 24 Sep 2001 23:36:48 +0000 Subject: [PATCH] oops, forgot to check this in - now that window mediator no longer drags in rdf, manually pull in nsISupportsArray to fix bustage (bug 100116) git-svn-id: svn://10.0.0.236/trunk@103660 18797224-902f-48f8-a5cc-f745e15eee43 --- .../xpfe/bootstrap/nsNativeAppSupportWin.cpp | 1 + mozilla/xpfe/bootstrap/nsSetupRegistry.cpp | 79 +------------------ 2 files changed, 3 insertions(+), 77 deletions(-) diff --git a/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp b/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp index a08dec2e0ef..867cd44b05a 100644 --- a/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp +++ b/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp @@ -35,6 +35,7 @@ #include "nsICmdLineHandler.h" #include "nsIDOMWindow.h" #include "nsISupportsPrimitives.h" +#include "nsISupportsArray.h" #include "nsIWindowWatcher.h" #include "nsIDOMWindowInternal.h" #include "nsIScriptGlobalObject.h" diff --git a/mozilla/xpfe/bootstrap/nsSetupRegistry.cpp b/mozilla/xpfe/bootstrap/nsSetupRegistry.cpp index b3e61bde323..7c1b8665f6d 100644 --- a/mozilla/xpfe/bootstrap/nsSetupRegistry.cpp +++ b/mozilla/xpfe/bootstrap/nsSetupRegistry.cpp @@ -21,79 +21,6 @@ */ #define NS_IMPL_IDS -#include "nsIAppShellService.h" -#include "nsICmdLineService.h" -#include "nsAppShellCIDs.h" -#include "nsIEditor.h" -#include "nsIComponentManager.h" -#include "nsIServiceManager.h" - -#include "nsFileSpec.h" -#include "nsIFileSpec.h" - -#include "rdf.h" -#include "nsIWindowMediator.h" -// #include "nsAbout.h" -#include "nsIAboutModule.h" - -#ifdef XP_OS2 - -#define WIDGET_DLL "WDGTOS2" -#define GFXWIN_DLL "GFX_OS2" -#define VIEW_DLL "NGVIEW" -#define WEB_DLL "WEBSHELL" -#define PREF_DLL "PREF" -#define PARSER_DLL "HTMLPARS" -#define LAYOUT_DLL "NGLAYOUT" -#define NETLIB_DLL "NECKO" -#define EDITOR_DLL "ENDER" -#define APPSHELL_DLL "APPSHELL" -#define APPCORES_DLL "APPCORES" -#define CAPS_DLL "CAPS" -#define LIVECONNECT_DLL "JSJ" -#define OJI_DLL "OJI" - -#else - -#ifdef XP_PC - -#define BROWSER_DLL "nsbrowser.dll" -#define EDITOR_DLL "ender.dll" - -#else - -#ifdef XP_MAC - -#define EDITOR_DLL "ENDER_DLL" - -#else - -// XP_UNIX || XP_BEOS -#define EDITOR_DLL "libender"MOZ_DLL_SUFFIX - -#endif // XP_MAC - -#endif // XP_PC - -#endif // XP_OS2 - -// Class IDs -static NS_DEFINE_CID(kCAppShellServiceCID, NS_APPSHELL_SERVICE_CID); -static NS_DEFINE_CID(kCCmdLineServiceCID, NS_COMMANDLINE_SERVICE_CID); -static NS_DEFINE_CID(kProtocolHelperCID, NS_PROTOCOL_HELPER_CID); -static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID); -#define NS_ABOUT_CID \ -{ /* {1f1ce501-663a-11d3-b7a0-be426e4e69bc} */ \ -0x1f1ce501, 0x663a, 0x11d3, { 0xb7, 0xa0, 0xbe, 0x42, 0x6e, 0x4e, 0x69, 0xbc } \ -} -static NS_DEFINE_CID( kAboutModuleCID, NS_ABOUT_CID); -nsresult NS_AutoregisterComponents() -{ - nsresult rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, - NULL /* default */); - return rv; -} - /* * This evil file will go away when the XPCOM registry can be * externally initialized! @@ -110,16 +37,14 @@ extern "C" void NS_SetupRegistry_1( PRBool needAutoreg ) { if ( needAutoreg ) - NS_AutoregisterComponents(); + nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, + NULL /* default */); /* * Call the standard NS_SetupRegistry() implemented in * webshell/tests/viewer/nsSetupregistry.cpp */ NS_SetupRegistry(); - - //All Editor registration is done in webshell/tests/viewer/nsSetupregistry.cpp - }