Bug 1576582 [wpt PR 18670] - Fetch: data: URL HEAD request should result in empty response body, a=testonly
authorYutaka Hirano <yhirano@chromium.org>
Wed, 28 Aug 2019 09:51:30 +0000
changeset 551231 2fd02a2024462c80728beeef2f6cc783f763c932
parent 551230 b912f5d04be40e4a4cc2ee4cde6191d3efddafc0
child 551232 a911782d58c5bc5f98319b09e2204051984c5568
push id11865
push userbtara@mozilla.com
push dateMon, 02 Sep 2019 08:54:37 +0000
treeherdermozilla-beta@37f59c4671b3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1576582, 18670
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1576582 [wpt PR 18670] - Fetch: data: URL HEAD request should result in empty response body, a=testonly Automatic update from web-platform-tests Fetch: data: URL HEAD request should result in empty response body -- wpt-commits: 91b79fa82ec6fa6529a76f40726e07a6f3e09929 wpt-pr: 18670
testing/web-platform/tests/fetch/api/basic/scheme-data.any.js
--- a/testing/web-platform/tests/fetch/api/basic/scheme-data.any.js
+++ b/testing/web-platform/tests/fetch/api/basic/scheme-data.any.js
@@ -24,17 +24,17 @@ function checkFetchResponse(url, data, m
 checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII");
 checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", "same-origin");
 checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", "cors");
 checkFetchResponse("data:text/plain;base64,cmVzcG9uc2UncyBib2R5", "response's body", "text/plain");
 checkFetchResponse("data:image/png;base64,cmVzcG9uc2UncyBib2R5",
                    "response's body",
                    "image/png");
 checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", null, "POST");
-checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", null, "HEAD");
+checkFetchResponse("data:,response%27s%20body", "", "text/plain;charset=US-ASCII", null, "HEAD");
 
 function checkKoUrl(url, method, desc) {
   var cut = (url.length >= 40) ? "[...]" : "";
   desc = "Fetching [" + method + "] " + url.substring(0, 45) + cut + " is KO"
   promise_test(function(test) {
     return promise_rejects(test, new TypeError(), fetch(url, {"method": method}));
   }, desc);
 }