Issue with a SVG embedded in a data: URL

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Posts: 50
Joined: 2021-05-30, 03:48

Issue with a SVG embedded in a data: URL

Unread post by SemiKebab » 2023-11-29, 19:04

The following SVG, embedded in a data: URL, is broken (using Pale Moon 32.5.1):

Code: Select all

The source SVG: on Gerrit, on GitHub.

However, Pale Moon is able to open the SVG directly: rankselector.svg. The issue happens only when embedded in a data: URL.

For comparison, this one works:

Code: Select all

I didn't have the issue previously, and the problematic SVG hasn't been edited for years, so I suspect a regression in Pale Moon. It might be related to this commit: No issue - Stop supporting data: scheme in SVG <use> elements.

User avatar
Pale Moon guru
Pale Moon guru
Posts: 35274
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Issue with a SVG embedded in a data: URL

Unread post by Moonchild » 2023-11-29, 22:46

Yeah it was supposed to block data: in <use> statements inside the SVG, but now it blocks <svg> in data: URIs that have <use> in them somewhere. So it's not working as-intended.
Mozilla is also running into issues and have backed it out; unfortunately in our case it was already landed and made it into the release.
For the time being I'm backing this out also; it's not really a big deal although the spec says we should not allow it.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Post Reply