Skip to content

Commit

Permalink
Bug 1604809 [wpt PR 20840] - COEP: Enforce CORP in cache.match(), a=t…
Browse files Browse the repository at this point in the history
…estonly

Automatic update from web-platform-tests
COEP: Enforce CORP in cache.match()

Document using:
"Cross-Origin-Embedder-Policy: require-corp"
must not access cross-origin response that do not have the header:
"Cross-Origin-Resource-Policy: cross-site"

This is about only no-cors requests. CORS requests are checked against the
CORS headers instead.

See:
 - whatwg/fetch#985
 - w3c/ServiceWorker#1490

Bug: 1031542
Change-Id: I94a2cb9435fcf3e76f57a8f3d3344c87fa23f9a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1973913
Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726782}

--

wpt-commits: 236e6dbc70e128ab5ff5bad6ab98888281df8ffd
wpt-pr: 20840
  • Loading branch information
ArthurSonzogni authored and moz-wptsync-bot committed Jan 3, 2020
1 parent b4f256d commit 321c836
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
const cache = await caches.open('v1');

if (response_type === 'error') {
await promise_rejects(t, new TypeError(), cache.match(url));
await promise_rejects(t, 'InvalidAccessError', cache.match(url));
return;
}

Expand Down

0 comments on commit 321c836

Please sign in to comment.