зеркало из https://github.com/mozilla/gecko-dev.git
Bug 660131 - Call g_type_init in loadProc of kGnomeModule to fix crash on mochitest-plain ; r=karlt
This commit is contained in:
Родитель
7ac2c0c464
Коммит
73e20bff7f
|
@ -54,7 +54,6 @@ nsGConfService::~nsGConfService()
|
|||
nsresult
|
||||
nsGConfService::Init()
|
||||
{
|
||||
g_type_init();
|
||||
mClient = gconf_client_get_default();
|
||||
return mClient ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
|
|
@ -299,13 +299,6 @@ nsGIOMimeApp::SetAsDefaultForURIScheme(nsACString const& aURIScheme)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsGIOService::Init()
|
||||
{
|
||||
// do nothing, gvfs/gio does not init.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsGIOService, nsIGIOService)
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -49,8 +49,6 @@ class nsGIOService : public nsIGIOService
|
|||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIGIOSERVICE
|
||||
|
||||
NS_HIDDEN_(nsresult) Init();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -50,7 +50,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGnomeVFSService, Init)
|
|||
#ifdef MOZ_ENABLE_GIO
|
||||
#include "nsGIOService.h"
|
||||
#include "nsGSettingsService.h"
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGIOService, Init)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGIOService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGSettingsService, Init)
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_LIBNOTIFY
|
||||
|
@ -107,10 +107,20 @@ static const mozilla::Module::ContractIDEntry kGnomeContracts[] = {
|
|||
{ NULL }
|
||||
};
|
||||
|
||||
static nsresult
|
||||
InitGType ()
|
||||
{
|
||||
g_type_init();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static const mozilla::Module kGnomeModule = {
|
||||
mozilla::Module::kVersion,
|
||||
kGnomeCIDs,
|
||||
kGnomeContracts
|
||||
kGnomeContracts,
|
||||
NULL,
|
||||
NULL,
|
||||
InitGType
|
||||
};
|
||||
|
||||
NSMODULE_DEFN(mozgnome) = &kGnomeModule;
|
||||
|
|
Загрузка…
Ссылка в новой задаче