From 36d7160a8e0d84af8fea240176919a5b974d1bc1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:29:26 +0200 Subject: [PATCH] chore: update WPT (#3598) Co-authored-by: Uzlopak <5059100+Uzlopak@users.noreply.github.com> --- .../fetch-destination-no-load-event.https.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/fixtures/wpt/fetch/api/request/destination/fetch-destination-no-load-event.https.html b/test/fixtures/wpt/fetch/api/request/destination/fetch-destination-no-load-event.https.html index 1778bf2581a..2fb4aaebc04 100644 --- a/test/fixtures/wpt/fetch/api/request/destination/fetch-destination-no-load-event.https.html +++ b/test/fixtures/wpt/fetch/api/request/destination/fetch-destination-no-load-event.https.html @@ -57,6 +57,20 @@ await waitOnMessageFromSW(t); }, 'Background image fetches with an "image" Request.destination'); +// SVG use element - image destination +// See for discussion https://github.com/whatwg/fetch/issues/1012. +promise_test(async t => { + const doc = frame.contentWindow.document; + + let svg = doc.createElementNS("http://www.w3.org/2000/svg", "svg"); + let use = doc.createElementNS("http://www.w3.org/2000/svg", "use"); + use.setAttribute("href", "dummy.svg?t=use&dest=image#ref"); + svg.appendChild(use); + doc.body.appendChild(svg); + + await waitOnMessageFromSW(t); +}, 'SVG use element fetches with an "image" Request.destination'); + // Font destination ///////////////////