mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 00a76d6b935c (bug 978147) for apparently breaking linux mochitests on an already CLOSED TREE
This commit is contained in:
parent
813a5a6742
commit
879600bd51
@ -106,6 +106,9 @@ nsDownloadManager::GetSingleton()
|
||||
|
||||
gDownloadManagerService = new nsDownloadManager();
|
||||
if (gDownloadManagerService) {
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
g_type_init();
|
||||
#endif
|
||||
NS_ADDREF(gDownloadManagerService);
|
||||
if (NS_FAILED(gDownloadManagerService->Init()))
|
||||
NS_RELEASE(gDownloadManagerService);
|
||||
|
@ -43,6 +43,10 @@ DownloadPlatform* DownloadPlatform::GetDownloadPlatform()
|
||||
|
||||
NS_ADDREF(gDownloadPlatformService);
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
return gDownloadPlatformService;
|
||||
}
|
||||
|
||||
|
@ -62,10 +62,20 @@ static const mozilla::Module::ContractIDEntry kGnomeContracts[] = {
|
||||
{ nullptr }
|
||||
};
|
||||
|
||||
static nsresult
|
||||
InitGType ()
|
||||
{
|
||||
g_type_init();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static const mozilla::Module kGnomeModule = {
|
||||
mozilla::Module::kVersion,
|
||||
kGnomeCIDs,
|
||||
kGnomeContracts
|
||||
kGnomeContracts,
|
||||
nullptr,
|
||||
nullptr,
|
||||
InitGType
|
||||
};
|
||||
|
||||
NSMODULE_DEFN(mozgnome) = &kGnomeModule;
|
||||
|
Loading…
Reference in New Issue
Block a user