Remove the IsHidden Exemption for Font Allowlist
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: tjr, Assigned: tjr)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
In this patch Tor Browser removes an exemption that allows Hidden Fonts to bypass the whitelist (font.system.whitelist
). That's because that behavior specifically causes Gill Sans to leak through for them in certain situations because we do a weird thing for them.
I see the Hidden exemption was added in this patch. I'm not certain, but it seems like the purpose of it is something to effect of "Allow this font to be used by the browser, but not a font that can be chosen and used by websites".
But I don't understand why would we add these Hidden Fonts (like .LastResort) to the whitelist if we want them to be invisible to websites, because when the whitelist is active, the visibility rules (like Hidden) are ignored.
Code Archaeology tells me the Visibility Restriction || Whitelist
was added here in Aug 2020; while the Hidden is automatically added to the whitelist
was added here in April 2020.
So: I think this patch is correct...? And is Tor Browser the only consumer of the whitelist pref? (We have no code coverage for it.) If so, it seems safer in terms of us uplifting it, since they already did.
Ref:
Assignee | ||
Comment 1•11 months ago
|
||
Updated•11 months ago
|
Comment 2•11 months ago
|
||
Hi Tom, thanks for taking the patch also to Firefox!
But I don't understand why would we add these Hidden Fonts (like .LastResort) to the whitelist if we want them to be invisible to websites, because when the whitelist is active, the visibility rules (like Hidden) are ignored.
Before implementing the patch, I checked on a macOS system, and it seems LastResort will be always ignored, even when using the version without the initial period.
In general, Firefox will ignore all the fonts starting with period on macOS.
I'm attaching a screenshot with Firefox on the top left, Chrome on the top right, Tor Browser in the bottom.
Comment 3•11 months ago
|
||
Updated•11 months ago
|
Comment 5•11 months ago
|
||
bugherder |
Description
•