diff --git a/xpfe/bootstrap/nsAppRunner.cpp b/xpfe/bootstrap/nsAppRunner.cpp index b70859c8ef54..faf516d10da0 100644 --- a/xpfe/bootstrap/nsAppRunner.cpp +++ b/xpfe/bootstrap/nsAppRunner.cpp @@ -1514,6 +1514,11 @@ int main(int argc, char* argv[]) InitializeMacOSXApp(argc, argv); #endif +#ifdef _BUILD_STATIC_BIN + // Initialize XPCOM's module info table + NSGetStaticModuleInfo = apprunner_getModuleInfo; +#endif + // Handle -help and -version command line arguments. // They should% return quick, so we deal with them here. if (HandleDumpArguments(argc, argv)) @@ -1566,11 +1571,6 @@ int main(int argc, char* argv[]) splash->Show(); } -#ifdef _BUILD_STATIC_BIN - // Initialize XPCOM's module info table - NSGetStaticModuleInfo = apprunner_getModuleInfo; -#endif - NS_TIMELINE_MARK("InitXPCom..."); rv = NS_InitXPCOM2(NULL, NULL, NULL);