WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
327370
Support referrerpolicy on SVG <image> and <script>
https://bugs.webkit.org/show_bug.cgi?id=327370
Summary
Support referrerpolicy on SVG <image> and <script>
Karl Dubost
Reported
2026-10-12 23:30:39 PDT
The SVG WG resolved on 2026-10-06 to add the referrerpolicy attribute and the referrerPolicy IDL attribute to SVG <image> and <script>, as for HTML <img> and <script>:
https://github.com/w3c/svgwg/issues/1171
https://www.w3.org/2026/10/06-svg-minutes.html
Spec PR:
https://github.com/w3c/svgwg/pull/1188
WebKit ignores the attribute on both. Referer header received by a server that echoes it back, with referrerpolicy="no-referrer": element Safari 27.0 Firefox 159 Chrome 156 HTML img honoured honoured honoured SVG image ignored ignored honoured HTML script honoured honoured honoured SVG script ignored ignored ignored Same results with unsafe-url. Chrome honours it on SVG image because its image loader reads the attribute from any element, but SVGImageElement has no referrerPolicy member there. Most of the plumbing exists: - Source/WebCore/dom/ScriptElement.cpp already passes referrerPolicy() to the script loaders, and SVGScriptElement.h:73 returns ReferrerPolicy::EmptyString. - Source/WebCore/loader/ImageLoader.cpp:260 only reads referrerPolicy() from an HTMLImageElement. SVG <a> is
bug 279265
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-10-19 23:31:13 PDT
<
rdar://problem/190494033
>
Karl Dubost
Comment 2
2026-11-10 06:17:54 PST
Pull request:
https://github.com/WebKit/WebKit/pull/80323
EWS
Comment 3
2026-11-11 00:15:38 PST
Committed
326376@main
(993537d7ce48): <
https://commits.webkit.org/326376@main
> Reviewed commits have been landed. Closing PR #80323 and removing active labels.
Karl Dubost
Comment 4
2026-11-11 00:24:31 PST
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/65020
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug