From cfd604b35bc7f03d14b64c55526ed7372065a32c Mon Sep 17 00:00:00 2001 From: Yutaka Hirano Date: Wed, 26 Aug 2020 08:59:12 +0000 Subject: [PATCH] Bug 1660989 [wpt PR 25224] - [fetch] Empty destination should be the empty string, not "empty", a=testonly Automatic update from web-platform-tests [fetch] Empty destination should be the empty string, not "empty" As specified at [1],the empty destination should be the empty string, not "empty". We use "empty" for the "sec-fetch-dest" header[2] though. Fix the implementation and fix incorrect WPTs altogether. 1: https://fetch.spec.whatwg.org/#concept-request-destination 2: https://w3c.github.io/webappsec-fetch-metadata/#abstract-opdef-set-dest Bug: 1121493 Change-Id: Ia86d716dd434c3b6b0e6f1914019fd6110a7ab8d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2374725 Reviewed-by: Kinuko Yasuda Reviewed-by: Matt Falkenhagen Commit-Queue: Yutaka Hirano Cr-Commit-Position: refs/heads/master@{#801368} -- wpt-commits: a05058d027c17c6863b1c3a4610dae0d2ab58876 wpt-pr: 25224 --- .../web-platform/tests/fetch/api/request/request-structure.html | 2 +- .../service-worker/fetch-request-resources.https.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/web-platform/tests/fetch/api/request/request-structure.html b/testing/web-platform/tests/fetch/api/request/request-structure.html index 806606cf627c..e137a7ea5120 100644 --- a/testing/web-platform/tests/fetch/api/request/request-structure.html +++ b/testing/web-platform/tests/fetch/api/request/request-structure.html @@ -58,7 +58,7 @@ break; case "destination": - defaultValue = "empty"; + defaultValue = ""; newValue = "worker"; break; diff --git a/testing/web-platform/tests/service-workers/service-worker/fetch-request-resources.https.html b/testing/web-platform/tests/service-workers/service-worker/fetch-request-resources.https.html index fe227d9ce2f4..50864ca78955 100644 --- a/testing/web-platform/tests/service-workers/service-worker/fetch-request-resources.https.html +++ b/testing/web-platform/tests/service-workers/service-worker/fetch-request-resources.https.html @@ -117,7 +117,7 @@ function fetch_test(frame, url, mode, credentials, credentials: expected_credentials, redirect: 'follow', integrity: '', - destination: 'empty', + destination: '', message: `fetch (url:${actual_url} mode:${mode} ` + `credentials:${credentials})` };