bug 1471217 - ignore the network.dns.get-ttl pref on non-supported systems r=mcmanus
authorDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jun 2018 15:36:26 +0200
changeset 478832 d70d3df84311f4a2949d83f0ad087cfe47ed00e4
parent 478831 d0800ceffc76a11bc2790ea9f36cb03c16a40750
child 478833 a5a1fdc41ec40acc2d32b69f8e7fc85c796bd16c
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1471217
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1471217 - ignore the network.dns.get-ttl pref on non-supported systems r=mcmanus Which is how the pref is documented in all.js MozReview-Commit-ID: 5ONQgZ1wO5G
netwerk/dns/nsHostResolver.cpp
--- a/netwerk/dns/nsHostResolver.cpp
+++ b/netwerk/dns/nsHostResolver.cpp
@@ -503,17 +503,19 @@ static void DnsPrefChanged(const char* a
 {
     MOZ_ASSERT(NS_IsMainThread(),
                "Should be getting pref changed notification on main thread!");
 
     DebugOnly<nsHostResolver*> self = static_cast<nsHostResolver*>(aClosure);
     MOZ_ASSERT(self);
 
     if (!strcmp(aPref, kPrefGetTtl)) {
+#ifdef DNSQUERY_AVAILABLE
         sGetTtlEnabled = Preferences::GetBool(kPrefGetTtl);
+#endif
     } else if (!strcmp(aPref, kPrefNativeIsLocalhost)) {
         gNativeIsLocalhost = Preferences::GetBool(kPrefNativeIsLocalhost);
     }
 }
 
 NS_IMPL_ISUPPORTS0(nsHostResolver)
 
 nsHostResolver::nsHostResolver(uint32_t maxCacheEntries,