diff --git a/xpfe/bootstrap/nsAppRunner.cpp b/xpfe/bootstrap/nsAppRunner.cpp index 3764697d5fbd..641754551b86 100644 --- a/xpfe/bootstrap/nsAppRunner.cpp +++ b/xpfe/bootstrap/nsAppRunner.cpp @@ -975,13 +975,13 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp ) rv = InitializeProfileService(cmdLineArgs); if (NS_FAILED(rv)) return rv; + // Enumerate AppShellComponenets + appShell->EnumerateAndInitializeComponents(); + // rjc: now must explicitly call appshell's CreateHiddenWindow() function AFTER profile manager. // if the profile manager ever switches to using nsIDOMWindowInternal stuff, this might have to change appShell->CreateHiddenWindow(); - // Enumerate AppShellComponenets - appShell->EnumerateAndInitializeComponents(); - // This will go away once Components are handling there own commandlines // if we have no command line arguments, we need to heed the // "general.startup.*" prefs