We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c70b18e commit 694ef3bCopy full SHA for 694ef3b
fetch/api/request/destination/fetch-destination.https.html
@@ -425,4 +425,18 @@
425
});
426
}, 'HTMLLinkElement with rel=preload and as=manifest fetches with a "manifest" Request.destination');
427
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
+
442
</script>
0 commit comments