Backed out changeset 07b44dd04f0d (bug 1397646) for causing XHR related mochitest failures.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user