Bug 627332 - add-ons compatibility check always presents "Minefield is working offline" dialog when network link state detection is disabled. r=roc a=dolske

This commit is contained in:
Frank Yan 2011-01-27 16:07:30 -08:00
parent 6fbb3d1e4a
commit 08c5efbc6a

View File

@ -268,15 +268,15 @@ nsIOService::Init()
#endif
mNetworkLinkService = do_GetService(NS_NETWORK_LINK_SERVICE_CONTRACTID);
if (!mNetworkLinkService) {
mManageOfflineStatus = PR_FALSE;
if (!mNetworkLinkService)
// We can't really determine if the machine has a usable network connection,
// so let's cross our fingers!
SetOffline(PR_FALSE);
}
mManageOfflineStatus = PR_FALSE;
if (mManageOfflineStatus)
TrackNetworkLinkStatusForOffline();
else
SetOffline(PR_FALSE);
NS_TIME_FUNCTION_MARK("Set up network link service");