Closed Bug 2094915 Opened 11 days ago Closed 8 days ago

[wpt-sync] Sync PR 65020 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327370

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 65020 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/65020
Details from upstream follow.

Karl Dubost <karlcow@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327370

WebKit export from bug: Support referrerpolicy on SVG \<<!---->image><!----> and \<<!---->script><!---->

<pre>
Support referrerpolicy on SVG <image> and <script>

SVG 2 gives <image> and <script> a referrerpolicy attribute, with the
processing rules of HTML <img> and <script>, and a referrerPolicy IDL
attribute that reflects it.
<a href="https://w3c.github.io/svgwg/svg2-draft/embedded.html#ImageElementReferrerpolicyAttribute">https://w3c.github.io/svgwg/svg2-draft/embedded.html#ImageElementReferrerpolicyAttribute</a>
<a href="https://w3c.github.io/svgwg/svg2-draft/interact.html#ScriptElementReferrerpolicyAttribute">https://w3c.github.io/svgwg/svg2-draft/interact.html#ScriptElementReferrerpolicyAttribute</a>

SVGScriptElement now parses the attribute where it returned an empty
policy, and ScriptElement already passes that policy to the fetch.
SVGImageElement parses it the same way, ImageLoader uses it for the
image request, and a change of the parsed policy restarts the load, as
HTMLImageElement does. Both get the referrerPolicy IDL attribute, as
SVGAElement already has.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327370">https://bugs.webkit.org/show_bug.cgi?id=327370</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/326376@main">https://commits.webkit.org/326376@main</a>
</pre>

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 3 subtests

Status Summary

Firefox

OK : 3
PASS: 19

Chrome

OK : 3
PASS: 5
FAIL: 14

Safari

OK : 3
PASS: 3
FAIL: 16

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.