Closed Bug 2081414 Opened 1 month ago Closed 1 month ago

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

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Karl Dubost <k_dubost@apple.com> wrote:

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

WebKit export from bug: Support referrerPolicy for SVG <a> element

<pre>
Support referrerPolicy for SVG <a> element

SVG 2 gives SVG <a> the same referrerpolicy attribute as HTML <a>:

 Allowed values and meaning are as defined for the a element in
 HTML.

<a href="https://w3c.github.io/svgwg/svg2-draft/linking.html#AElementReferrerpolicyAttribute">https://w3c.github.io/svgwg/svg2-draft/linking.html#AElementReferrerpolicyAttribute</a>

WebKit had neither the attribute nor the referrerPolicy property, and
following an SVG link only looked at rel="noreferrer". Chrome and
Firefox support both.

SVGAElement now reads the attribute the way HTMLAnchorElement does, and
uses effectiveReferrerPolicy() when following the link, so
rel="noreferrer" still wins over the attribute. hasRel() had no other
caller and is removed.

New test a-referrerpolicy-navigation.html follows an SVG link with
several referrerpolicy values and checks the referrer the target page
receives.

Upstream commit: <a href="https://github.com/web-platform-tests/wpt/commit/c7bbc237dc396576b7486224a40a2ae2fa6d1141">https://github.com/web-platform-tests/wpt/commit/c7bbc237dc396576b7486224a40a2ae2fa6d1141</a>

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=279265">https://bugs.webkit.org/show_bug.cgi?id=279265</a>
</pre>

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

CI Results

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

Total 22 tests

Status Summary

Firefox

OK : 1[GitHub] 21[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[Gecko-linux2204-64-wayland-opt] 5[GitHub] 70[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1

Chrome

OK : 1
PASS : 5

Safari

OK : 1
PASS : 3
FAIL : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /svg/linking/scripted/use-iframe-crash.html [wpt.fyi]: PASS [Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt], TIMEOUT [Gecko-linux2204-64-wayland-debug]
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.