From af06307b1a27c7f126e6339cbe63a6ded3d2d2f9 Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Mon, 26 Nov 2018 23:30:47 +0000 Subject: [PATCH] Split out prefetch test from fetch-destination.https.html, and disable for Firefox. Differential Revision: https://phabricator.services.mozilla.com/D12944 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1503852 gecko-commit: d534baf412772ee14e0d89f651267cb4dc2a3f6c gecko-integration-branch: autoland gecko-reviewers: jgraham --- .../fetch-destination-prefetch.https.html | 46 +++++++++++++++++++ .../destination/fetch-destination.https.html | 14 ------ 2 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 fetch/api/request/destination/fetch-destination-prefetch.https.html diff --git a/fetch/api/request/destination/fetch-destination-prefetch.https.html b/fetch/api/request/destination/fetch-destination-prefetch.https.html new file mode 100644 index 00000000000000..db99202df87af6 --- /dev/null +++ b/fetch/api/request/destination/fetch-destination-prefetch.https.html @@ -0,0 +1,46 @@ + +Fetch destination test for prefetching + + + + + + diff --git a/fetch/api/request/destination/fetch-destination.https.html b/fetch/api/request/destination/fetch-destination.https.html index 5d9f71735913e9..27b510268dde9f 100644 --- a/fetch/api/request/destination/fetch-destination.https.html +++ b/fetch/api/request/destination/fetch-destination.https.html @@ -425,18 +425,4 @@ }); }, 'HTMLLinkElement with rel=preload and as=manifest fetches with a "manifest" Request.destination'); -// HTMLLinkElement with rel=prefetch - empty string destination -promise_test(async t => { - await new Promise((resolve, reject) => { - let node = frame.contentWindow.document.createElement("link"); - node.rel = "prefetch"; - node.onload = resolve; - node.onerror = reject; - node.href = "dummy?dest="; - frame.contentWindow.document.body.appendChild(node); - }).catch(() => { - assert_unreached("Fetch errored."); - }); -}, 'HTMLLinkElement with rel=prefetch fetches with an empty string Request.destination'); -