Add font exception to security.fileuri.unique_origin

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.
jackst

Add font exception to security.fileuri.unique_origin

Unread post by jackst » 2019-08-13, 17:58

Hi,

I've stumble upon an issue with the last release of Pale Moon (28.6.1) that might be seen as a bug: local html pages cannot load their fonts from disk anymore. In my case, I have a local HTML page (no server) that use a downloaded version of FontAwesome in a subdir, and fonts are blocked by CORS.

I haven't find a way to make this work without completely disabIing the file URI origin security.

Firefox has the same problem since version 68 and they have decided to make exceptions for font files:
https://bugzilla.mozilla.org/show_bug.cgi?id=1565942

Would it be possible to have the same kind of exceptions in Pale Moon?


By the way, I've been using PM for years now, thank you for your great work.

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

Re: Add font exception to security.fileuri.unique_origin

Unread post by Moonchild » 2019-08-13, 21:07

Sure, there's no harm in making woff/woff2 files exempt.

Tracking in Issue #1211 (UXP)

Note: in the meantime you can set the unique_origin pref to false for your particular use case.
"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

jackst

Re: Add font exception to security.fileuri.unique_origin

Unread post by jackst » 2019-08-13, 22:33

Thank you, that would be awesome!

And yes, I've seen the security.fileuri.unique_origin parameter from the release notes. My page is working fine by setting it to "false".

Locked