Update web-platform-tests to revision b'1393983442315fc6a96bacda5202036ca10327e3'

This commit is contained in:
WPT Sync Bot 2023-03-03 03:14:26 +00:00
parent 37f26f5250
commit e8bd8b22fa
300 changed files with 3487 additions and 1857 deletions

View file

@ -13,8 +13,11 @@ meta.setAttribute('http-equiv', 'Content-Security-Policy');
meta.setAttribute('content', "connect-src 'none'");
document.head.appendChild(meta);
backgroundFetchTest((t, bgFetch) => {
backgroundFetchTest(async (t, bgFetch) => {
const fetch = await bgFetch.fetch(uniqueId(), '/');
const record = await fetch.match('/');
return promise_rejects_js(
t, TypeError,
bgFetch.fetch(uniqueId(), 'https://example.com'));
record.responseReady);
}, 'fetch blocked by CSP should reject');