Backed out changeset 07b44dd04f0d (bug 1397646) for causing XHR related mochitest failures.

This commit is contained in:
Iulian Moraru
2023-08-01 01:56:42 +03:00
parent 7beb3fc5e7
commit 1e4a9bd3bd
3 changed files with 61 additions and 8 deletions

View File

@@ -2159,14 +2159,7 @@ HttpBaseChannel::GetResponseStatus(uint32_t* aValue) {
NS_IMETHODIMP
HttpBaseChannel::GetResponseStatusText(nsACString& aValue) {
if (!mResponseHead) return NS_ERROR_NOT_AVAILABLE;
nsAutoCString version;
// https://fetch.spec.whatwg.org :
// Responses over an HTTP/2 connection will always have the empty byte
// sequence as status message as HTTP/2 does not support them.
if (NS_WARN_IF(NS_FAILED(GetProtocolVersion(version))) ||
!version.EqualsLiteral("h2")) {
mResponseHead->StatusText(aValue);
}
return NS_OK;
}

View File

@@ -1,8 +1,48 @@
[status.h2.any.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[statusText over H2 for status 200 should be the empty string]
expected: FAIL
[statusText over H2 for status 210 should be the empty string]
expected: FAIL
[statusText over H2 for status 400 should be the empty string]
expected: FAIL
[statusText over H2 for status 404 should be the empty string]
expected: FAIL
[statusText over H2 for status 410 should be the empty string]
expected: FAIL
[statusText over H2 for status 500 should be the empty string]
expected: FAIL
[statusText over H2 for status 502 should be the empty string]
expected: FAIL
[status.h2.any.worker.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[statusText over H2 for status 200 should be the empty string]
expected: FAIL
[statusText over H2 for status 210 should be the empty string]
expected: FAIL
[statusText over H2 for status 400 should be the empty string]
expected: FAIL
[statusText over H2 for status 404 should be the empty string]
expected: FAIL
[statusText over H2 for status 410 should be the empty string]
expected: FAIL
[statusText over H2 for status 500 should be the empty string]
expected: FAIL
[statusText over H2 for status 502 should be the empty string]
expected: FAIL

View File

@@ -1,3 +1,23 @@
[status.h2.window.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[statusText over H2 for status 200 should be the empty string]
expected: FAIL
[statusText over H2 for status 210 should be the empty string]
expected: FAIL
[statusText over H2 for status 400 should be the empty string]
expected: FAIL
[statusText over H2 for status 404 should be the empty string]
expected: FAIL
[statusText over H2 for status 410 should be the empty string]
expected: FAIL
[statusText over H2 for status 500 should be the empty string]
expected: FAIL
[statusText over H2 for status 502 should be the empty string]
expected: FAIL