зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1140284 - start the resolver even when offline; r=ehsan
This commit is contained in:
Родитель
edf28e957e
Коммит
8a79925af3
|
@ -77,10 +77,6 @@ public:
|
|||
bool IsOffline() { return mOffline; }
|
||||
bool IsLinkUp();
|
||||
|
||||
bool IsComingOnline() const {
|
||||
return mOffline && mSettingOffline && !mSetOfflineValue;
|
||||
}
|
||||
|
||||
// Should only be called from NeckoChild. Use SetAppOffline instead.
|
||||
void SetAppOfflineInternal(uint32_t appId, int32_t status);
|
||||
|
||||
|
|
|
@ -603,11 +603,6 @@ nsDNSService::Init()
|
|||
|
||||
nsDNSPrefetch::Initialize(this);
|
||||
|
||||
// Don't initialize the resolver if we're in offline mode.
|
||||
// Later on, the IO service will reinitialize us when going online.
|
||||
if (gIOService->IsOffline() && !gIOService->IsComingOnline())
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIIDNService> idn = do_GetService(NS_IDNSERVICE_CONTRACTID);
|
||||
|
||||
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
|
||||
|
|
Загрузка…
Ссылка в новой задаче