Skip to content

Commit 62835ea

Browse files
yoavweissjgraham
authored andcommitted
Bug 1457139 [wpt PR 10657] - Align Request.destination to spec, a=testonly
Automatic update from web-platform-testsAlign Request.destination to spec Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Charlie Harrison <[email protected]> Reviewed-by: Yutaka Hirano <[email protected]> Cr-Commit-Position: refs/heads/master@{#554341} -- wpt-commits: 3c940291e9e8c30e8c7c401426160e3531639403 wpt-pr: 10657
1 parent 5fbbb65 commit 62835ea

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

testing/web-platform/meta/MANIFEST.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558229,7 +558229,7 @@
558229558229
"testharness"
558230558230
],
558231558231
"fetch/api/request/destination/fetch-destination.https.html": [
558232-
"5b7276e8a10bf91ee7d2a92917176b8e62c3255d",
558232+
"29e22bbe11b501fa354e90dde671f5f500fcaab3",
558233558233
"testharness"
558234558234
],
558235558235
"fetch/api/request/destination/resources/dummy": [

testing/web-platform/tests/fetch/api/request/destination/fetch-destination.https.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,4 +425,18 @@
425425
});
426426
}, 'HTMLLinkElement with rel=preload and as=manifest fetches with a "manifest" Request.destination');
427427

428+
// HTMLLinkElement with rel=prefetch - empty string destination
429+
promise_test(async t => {
430+
await new Promise((resolve, reject) => {
431+
let node = frame.contentWindow.document.createElement("link");
432+
node.rel = "prefetch";
433+
node.onload = resolve;
434+
node.onerror = reject;
435+
node.href = "dummy?dest=";
436+
frame.contentWindow.document.body.appendChild(node);
437+
}).catch(() => {
438+
assert_unreached("Fetch errored.");
439+
});
440+
}, 'HTMLLinkElement with rel=prefetch fetches with an empty string Request.destination');
441+
428442
</script>

0 commit comments

Comments
 (0)