forked from mirrors/gecko-dev
Bug 1886757 - Ignore a trailing dot in a hostname for the network.dns.localdomains pref; r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205415
This commit is contained in:
parent
891eaf1ede
commit
bbcf4a3807
3 changed files with 5 additions and 37 deletions
|
|
@ -996,7 +996,10 @@ nsresult nsDNSService::AsyncResolveInternal(
|
|||
|
||||
res = mResolver;
|
||||
idn = mIDN;
|
||||
localDomain = mLocalDomains.Contains(aHostname);
|
||||
localDomain = StringEndsWith(aHostname, "."_ns)
|
||||
? mLocalDomains.Contains(
|
||||
Substring(aHostname, 0, aHostname.Length() - 1))
|
||||
: mLocalDomains.Contains(aHostname);
|
||||
}
|
||||
|
||||
if (mNotifyResolution) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[window-location.https.sub.html]
|
||||
expected:
|
||||
if not swgl and debug and (os == "linux") and fission: CRASH
|
||||
if not swgl and debug and (os == "linux") and fission: OK
|
||||
if swgl and (os == "linux") and fission: [OK, CRASH]
|
||||
|
|
|
|||
|
|
@ -1,50 +1,15 @@
|
|||
[trailing-dot.https.sub.any.serviceworker.html]
|
||||
expected:
|
||||
if (os == "android") and fission: [OK, TIMEOUT]
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[trailing-dot.https.sub.any.html]
|
||||
expected:
|
||||
if (os == "android") and fission: [OK, TIMEOUT]
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[trailing-dot.https.sub.any.worker.html]
|
||||
expected:
|
||||
if (os == "android") and fission: [OK, TIMEOUT]
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[trailing-dot.https.sub.any.sharedworker.html]
|
||||
expected:
|
||||
if (os == "android") and fission: [TIMEOUT, OK]
|
||||
[Fetching a resource from a cross-site host, spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same origin, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
||||
[Fetching a resource from the same site, but spelled with a trailing dot.]
|
||||
expected: FAIL
|
||||
|
|
|
|||
Loading…
Reference in a new issue