Create a pref to control the categories of installed fonts that are visible to CSS
Categories
(Core :: Layout: Text and Fonts, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(3 files)
To allow initial experimentation with locking down the list of installed system fonts that are exposed to web pages, I propose creating a simple pref layout.css.font-visibility.level
which will be an integer controlling which categories of fonts (as recorded by the FontVisibility property of font family records) should be exposed.
The initial default value will allow all fonts to be used (i.e. no change to current behavior), but will enable us to begin testing the result of changes to visibility. Also, initially this will be a simple global pref, but we'll probably want to look at additional flexibility such as allowing per-origin relaxation of the restriction.
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D73441
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D74042
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/014f53feb1f7 patch 1 - Add a pref to control visibility of different categories of installed font families. r=jwatt https://hg.mozilla.org/integration/autoland/rev/2214b56c3406 patch 2 - Ensure mCodepointsWithNoFonts is cleared if the font visibility pref changes. r=jwatt https://hg.mozilla.org/integration/autoland/rev/4481f4c24981 patch 3 - Collect telemetry for cases where platform font fallback wanted to use a font that is blocked from visibility to CSS. r=jwatt
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/014f53feb1f7
https://hg.mozilla.org/mozilla-central/rev/2214b56c3406
https://hg.mozilla.org/mozilla-central/rev/4481f4c24981
Description
•