зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset fe27999955a4 (bug 1610836) for multiple perma failures. CLOSED TREE
--HG-- extra : amend_source : 7f648c73ebfbd227abf477d975f033e507cb151b
This commit is contained in:
Родитель
995e9b73cc
Коммит
f783276fb9
|
@ -1453,12 +1453,9 @@ nsresult nsHostResolver::NameLookup(nsHostRecord* rec) {
|
||||||
rv = TrrLookup(rec);
|
rv = TrrLookup(rec);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool serviceNotReady =
|
|
||||||
!gTRRService || !gTRRService->Enabled(effectiveRequestMode);
|
|
||||||
|
|
||||||
if (effectiveRequestMode == nsIRequest::TRR_DISABLED_MODE ||
|
if (effectiveRequestMode == nsIRequest::TRR_DISABLED_MODE ||
|
||||||
(effectiveRequestMode == nsIRequest::TRR_FIRST_MODE &&
|
(effectiveRequestMode == nsIRequest::TRR_FIRST_MODE &&
|
||||||
(rec->flags & RES_DISABLE_TRR || serviceNotReady) && NS_FAILED(rv))) {
|
(rec->flags & RES_DISABLE_TRR) && NS_FAILED(rv))) {
|
||||||
if (!rec->IsAddrRecord()) {
|
if (!rec->IsAddrRecord()) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1377,26 +1377,3 @@ add_task(async function test_vpnDetection() {
|
||||||
"changed"
|
"changed"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// confirmationNS set without confirmed NS yet
|
|
||||||
// checks that we properly fall back to DNS is confirmation is not ready yet
|
|
||||||
add_task(async function test_resolve_not_confirmed() {
|
|
||||||
dns.clearCache(true);
|
|
||||||
Services.prefs.setIntPref("network.trr.mode", 2); // TRR-first
|
|
||||||
Services.prefs.clearUserPref("network.trr.useGET");
|
|
||||||
Services.prefs.clearUserPref("network.trr.disable-ECS");
|
|
||||||
Services.prefs.setCharPref(
|
|
||||||
"network.trr.uri",
|
|
||||||
`https://foo.example.com:${h2Port}/doh?responseIP=1::ffff`
|
|
||||||
);
|
|
||||||
Services.prefs.setCharPref(
|
|
||||||
"network.trr.confirmationNS",
|
|
||||||
"confirm.example.com"
|
|
||||||
);
|
|
||||||
|
|
||||||
let [, , inStatus] = await new DNSListener("example.org", undefined, false);
|
|
||||||
Assert.ok(
|
|
||||||
Components.isSuccessCode(inStatus),
|
|
||||||
`${inStatus} should be a success code`
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче