commit 3248592a9f4ca679e5d5d9c4a44efca3ee11680e
parent 8164197b7960102ef2a7da34b436ddcdd78cfe9c
Author: Josh Matthews <josh@joshmatthews.net>
Date: Mon, 5 Jan 2026 10:40:18 +0000
Bug 2008453 [wpt PR 56974] - Implement pending preload responses with futures, a=testonly
Automatic update from web-platform-tests
wpt: Make fetch test use parameters that match link preload.
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
--
wpt-commits: c8c78b9c7c3cbe1253f519bc1b7f95f3a706fa10
wpt-pr: 56974
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/testing/web-platform/tests/preload/preload-resource-match.https.html b/testing/web-platform/tests/preload/preload-resource-match.https.html
@@ -103,7 +103,7 @@ const loaders = {
},
fetch: async (href, attr, t) => {
const options = {mode: attr.crossOrigin ? 'cors' : 'no-cors',
- credentials: !attr.crossOrigin || attr.crossOrigin === 'anonymous' ? 'omit' : 'include'}
+ credentials: attr.crossOrigin === 'anonymous' ? 'same-origin' : 'include'}
const response = await fetch(href, options)
await response.text();
@@ -168,4 +168,4 @@ for (const [resourceTypeName, resourceInfo] of Object.entries(resourceTypes)) {
}
}
-</script>
-\ No newline at end of file
+</script>