Bug 1673856 Do not set network.dns.ipv4OnlyDomains when running XPCShell r=valentin,necko-reviewers

This preference is currently only used when running Windows XPCShell
tests in order to disable IPv6 resolution for "localhost". However, this
does not seem to be needed anymore and actually breaks the expectation
that "localhost" resolves to IPv4 and IPv6 loopback addresses
(see bugs 1673315, 1673364, 1220810).

Differential Revision: https://phabricator.services.mozilla.com/D94986
This commit is contained in:
Frederic Wang 2020-10-28 13:50:00 +00:00
parent 4ef751c0a8
commit 93461aced4

View File

@ -121,15 +121,6 @@ if (runningInParent && "mozIAsyncHistory" in Ci) {
_Services.prefs.setBoolPref("places.history.enabled", true);
}
try {
if (runningInParent) {
// Disable IPv6 lookups for 'localhost' on windows.
if ("@mozilla.org/windows-registry-key;1" in Cc) {
_Services.prefs.setCharPref("network.dns.ipv4OnlyDomains", "localhost");
}
}
} catch (e) {}
// Configure crash reporting, if possible
// We rely on the Python harness to set MOZ_CRASHREPORTER,
// MOZ_CRASHREPORTER_NO_REPORT, and handle checking for minidumps.