mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
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:
parent
6fbb3d1e4a
commit
08c5efbc6a
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user