Closed Bug 1634677 Opened 4 years ago Closed 4 years ago

Create a pref to control the categories of installed fonts that are visible to CSS

Categories

(Core :: Layout: Text and Fonts, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
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: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #9144999 - Attachment description: Bug 1634677 - Add a pref to control visibility of different categories of installed font families. r=jwatt → Bug 1634677 - patch 1 - Add a pref to control visibility of different categories of installed font families. r=jwatt
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
See Also: → 1654229
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: