Bug 1598004 [wpt PR 20342] - Add `Sec-Fetch-Dest: empty` header for application cache...
commitbe8f92e7b9aea045daf2dbb1be1ee51802c0d661
authorBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Mon, 2 Dec 2019 13:36:47 +0000 (2 13:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 4 Dec 2019 12:12:56 +0000 (4 12:12 +0000)
treef527182fcac8ae8a0a9c0961c129c3164fc67ca8
parent5c6d94174873dac2b8e238ee822120d7dfd048cb
Bug 1598004 [wpt PR 20342] - Add `Sec-Fetch-Dest: empty` header for application cache., a=testonly

Automatic update from web-platform-tests
Add `Sec-Fetch-Dest: empty` header for application cache. (#20342)

`Sec-Fetch-Dest` header for both manifests and resources should be `empty` for
the requests called from application cache according to step 4 and 18.3 of
https://html.spec.whatwg.org/#application-cache-download-process:
```
4. Let request be a new request whose url is manifest URL, client is null,
destination is the empty string, referrer is "no-referrer", synchronous flag is
set, credentials mode is "include", and whose use-URL-credentials flag is set.

18.3. Let request be a new request whose url is URL, client is null,
destination is the empty string, origin is manifest URL's origin, referrer is
"no-referrer", synchronous flag is set, credentials mode is "include",
use-URL-credentials flag is set, and redirect mode is "manual".
```

Bug: 1024198
Change-Id: I6566cead95f995089685fc8eed9635d82e3d4d81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1926478
Commit-Queue: Yifan Luo <lyf@google.com>
Reviewed-by: Chase Phillips <cmp@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719137}
--

wpt-commits: 3d59dcaa20452602f4c350f72f07ea6cf3d47e35
wpt-pr: 20342
testing/web-platform/tests/fetch/metadata/appcache.tentative.https.sub.html
testing/web-platform/tests/fetch/metadata/resources/record-header.py