Bug 561716 - Disable link monitoring in the child process to avoid g_type_init assertions. r=dougt

This commit is contained in:
Oleg Romashin 2010-07-28 18:05:19 -07:00
parent 29340ff3a4
commit e65a07747f

View File

@ -271,9 +271,11 @@ nsIOService::Init()
NS_TIME_FUNCTION_MARK("Set up the recycling allocator");
gIOService = this;
// go into managed mode if we can
mNetworkLinkService = do_GetService(NS_NETWORK_LINK_SERVICE_CONTRACTID);
// go into managed mode if we can, and chrome process
if (XRE_GetProcessType() == GeckoProcessType_Default)
mNetworkLinkService = do_GetService(NS_NETWORK_LINK_SERVICE_CONTRACTID);
if (!mNetworkLinkService)
mManageOfflineStatus = PR_FALSE;