mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
bug 46989, cookies don't work if components.reg is missing, r=dougt
This commit is contained in:
parent
9c925e6e4d
commit
9a2b9f050b
@ -133,14 +133,6 @@ nsAppShellService::Initialize( nsICmdLineService *aCmdLineService,
|
||||
mSplashScreen = do_QueryInterface( aNativeAppSupportOrSplashScreen );
|
||||
}
|
||||
|
||||
// Create the Event Queue for the UI thread...
|
||||
NS_WITH_SERVICE(nsIEventQueueService, eventQService, kEventQueueServiceCID,
|
||||
&rv);
|
||||
if (NS_OK == rv) {
|
||||
// XXX: What if this fails?
|
||||
rv = eventQService->CreateThreadEventQueue();
|
||||
}
|
||||
|
||||
NS_WITH_SERVICE(nsIMetaCharsetService, metacharset, kMetaCharsetCID, &rv);
|
||||
if(NS_FAILED(rv)) {
|
||||
goto done;
|
||||
|
@ -60,6 +60,7 @@
|
||||
#include "nsIChromeRegistry.h"
|
||||
#include "nsIContentHandler.h"
|
||||
#include "nsIBrowserInstance.h"
|
||||
#include "nsIEventQueueService.h"
|
||||
#include "nsAppFileLocationProvider.h"
|
||||
|
||||
// Interfaces Needed
|
||||
@ -90,6 +91,7 @@ static NS_DEFINE_IID(kIWindowMediatorIID,NS_IWINDOWMEDIATOR_IID);
|
||||
static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID);
|
||||
static NS_DEFINE_CID(kWalletServiceCID, NS_WALLETSERVICE_CID);
|
||||
static NS_DEFINE_CID(kBrowserContentHandlerCID, NS_BROWSERCONTENTHANDLER_CID);
|
||||
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
|
||||
|
||||
|
||||
#define HELP_SPACER_1 "\t"
|
||||
@ -756,6 +758,14 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp )
|
||||
fpsetmask(0);
|
||||
#endif
|
||||
|
||||
NS_WITH_SERVICE(nsIEventQueueService, eventQService, kEventQueueServiceCID,
|
||||
&rv);
|
||||
if (NS_OK == rv) {
|
||||
// XXX: What if this fails?
|
||||
rv = eventQService->CreateThreadEventQueue();
|
||||
}
|
||||
|
||||
|
||||
// Setup an autoreg obserer, so that we can update a progress
|
||||
// string in the splash screen
|
||||
nsCOMPtr<nsIObserverService> obsService = do_GetService(NS_OBSERVERSERVICE_PROGID);
|
||||
|
Loading…
Reference in New Issue
Block a user