Page MenuHomePhabricator

Beta feature for opt-in client side SVG rendering
Open, Stalled, LowPublic

Description

It's probably worth testing SVG client-side rendering as an opt-in beta feature, to get wider testing as we improve the authoring tools to help with optimizing rendering or blacklisting problematic files.

Event Timeline

Restricted Application added subscribers: Zppix, Steinsplitter, Aklapper. · View Herald Transcript
Jdforrester-WMF moved this task from Untriaged to Desired epics on the Multimedia board.
TheDJ changed the task status from Open to Stalled.Aug 7 2025, 8:21 AM
TheDJ subscribed.

This is currently stalled on WMF having reservations about adding CSP headers to file responses as they would add significantly to the byte count of traffic.. See T117618#10081491 and later.

I don't really think CSP should stall this. CSP only affects direct views. If we're talking about rendering an SVG via an <img> tag, CSP doesn't change anything. Additionally, we already allow template styles to set an svg file as a background-image so setting via <img> wouldn't really be a change in security posture.

To be clear CSP is a very good idea to improve Wikimedia's security posture, but it would improve the status quo. It wouldn't affect <img> tags.