diff --git a/dom/tests/mochitest/fetch/test_response.js b/dom/tests/mochitest/fetch/test_response.js index b0012e4b325f..efc52f6b0c31 100644 --- a/dom/tests/mochitest/fetch/test_response.js +++ b/dom/tests/mochitest/fetch/test_response.js @@ -4,7 +4,7 @@ function testDefaultCtor() { ok(res.headers instanceof Headers, "Response should have non-null Headers object"); is(res.url, "", "URL should be empty string"); is(res.status, 200, "Default status is 200"); - is(res.statusText, "OK", "Default statusText is OK"); + is(res.statusText, "", "Default statusText is an empty string"); } function testClone() { diff --git a/dom/webidl/Response.webidl b/dom/webidl/Response.webidl index 88a21c41577d..353a6d33fd20 100644 --- a/dom/webidl/Response.webidl +++ b/dom/webidl/Response.webidl @@ -44,7 +44,7 @@ partial interface Response { dictionary ResponseInit { unsigned short status = 200; - ByteString statusText = "OK"; + ByteString statusText = ""; HeadersInit headers; }; diff --git a/testing/web-platform/meta/fetch/api/response/response-init-001.html.ini b/testing/web-platform/meta/fetch/api/response/response-init-001.html.ini deleted file mode 100644 index 06d0d7744d28..000000000000 --- a/testing/web-platform/meta/fetch/api/response/response-init-001.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[response-init-001.html] - [Check default value for statusText attribute] - expected: FAIL -