Page MenuHomePhabricator

Enable SVG native rendering for 3rd parties by default
Closed, ResolvedPublic

Description

We have featured SVG native rendering in core for a while now, but because of WMF specifics, it has so far not been used by default. The third parties have indicated on multiple occasions that browser support has progressed to a point that they want to see it enabled by default, so that they do not have to handle the thumb nailing for it any longer.

Let's disable it for WMF (being a separate issue) and simply enable it by default for other users of MediaWiki.

Event Timeline

Change #1192528 had a related patch set uploaded (by TheDJ; author: TheDJ):

[operations/mediawiki-config@master] SVG: do not allow native SVG rendering

https://gerrit.wikimedia.org/r/1192528

Change #1171216 had a related patch set uploaded (by TheDJ; author: Remagoxer):

[mediawiki/core@master] Enable SVGNativeRendering by default

https://gerrit.wikimedia.org/r/1171216

Can a site requester take care of this one ? https://gerrit.wikimedia.org/r/1192528
I don't have the time to schedule config changes and be present during weekdays.

A_smart_kitten moved this task from Backlog to Working on on the Wikimedia-Site-requests board.
A_smart_kitten subscribed.

Can a site requester take care of this one ? https://gerrit.wikimedia.org/r/1192528
I don't have the time to schedule config changes and be present during weekdays.

Sure thing :)
Just to check so that I know what to test for during the backport window (ie., what this config change shouldn't be doing), am I right in thinking that - if $wgSVGNativeRendering was set to true on Wikimedia wikis - a page like https://commons.wikimedia.org/wiki/File:Wikimedia-logo_black.svg would directly embed an SVG file from the <img> tag, rather than a .svg.png file (e.g. https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Wikimedia-logo_black.svg/960px-Wikimedia-logo_black.svg.png)?

Can a site requester take care of this one ? https://gerrit.wikimedia.org/r/1192528
I don't have the time to schedule config changes and be present during weekdays.

Sure thing :)
Just to check so that I know what to test for during the backport window (ie., what this config change shouldn't be doing), am I right in thinking that - if $wgSVGNativeRendering was set to true on Wikimedia wikis - a page like https://commons.wikimedia.org/wiki/File:Wikimedia-logo_black.svg would directly embed an SVG file from the <img> tag, rather than a .svg.png file (e.g. https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Wikimedia-logo_black.svg/960px-Wikimedia-logo_black.svg.png)?

100% correct. Thank you in advance!

Change #1192528 merged by jenkins-bot:

[operations/mediawiki-config@master] SVG: do not allow native SVG rendering

https://gerrit.wikimedia.org/r/1192528

Mentioned in SAL (#wikimedia-operations) [2025-12-08T15:13:25Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1192528|SVG: do not allow native SVG rendering (T406023)]], [[gerrit:1201051|enwikibooks: Limit FlaggedRevs to specific namespaces; disable FR stable-transclusion-checking (T408110 T410330)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-08T15:15:25Z] <urbanecm@deploy2002> urbanecm, asmartkitten, hartman: Backport for [[gerrit:1192528|SVG: do not allow native SVG rendering (T406023)]], [[gerrit:1201051|enwikibooks: Limit FlaggedRevs to specific namespaces; disable FR stable-transclusion-checking (T408110 T410330)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-08T15:22:14Z] <urbanecm@deploy2002> Finished scap sync-world: Backport for [[gerrit:1192528|SVG: do not allow native SVG rendering (T406023)]], [[gerrit:1201051|enwikibooks: Limit FlaggedRevs to specific namespaces; disable FR stable-transclusion-checking (T408110 T410330)]] (duration: 08m 49s)

Change #1216857 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/core@master] Improve testcases for native SVG handling

https://gerrit.wikimedia.org/r/1216857

Change #1216857 merged by jenkins-bot:

[mediawiki/core@master] Improve testcases for native SVG handling

https://gerrit.wikimedia.org/r/1216857

Change #1171216 merged by jenkins-bot:

[mediawiki/core@master] Enable SVGNativeRendering by default

https://gerrit.wikimedia.org/r/1171216

TheDJ claimed this task.