Closed Bug 1792157 Opened 2 years ago Closed 1 year ago

Wrong visibility for bundled fonts with font-list.shared true on Linux

Categories

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

Firefox 105
Desktop
Linux
defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox106 --- wontfix
firefox107 --- wontfix
firefox108 --- wontfix
firefox109 --- wontfix
firefox110 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- fixed

People

(Reporter: pierov, Assigned: jfkthame)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Bug 1745715 regresses when gfx.e10s.font-list.shared is set to true.

So, if a font is available both as system font and as bundled font, its visibility is wrong and it is not rendered on Ubuntu and Fedora.
When I flip gfx.e10s.font-list.shared back to false, everything works as expected again.

Steps to reproduce:

  1. Install a system font that isn't normally installed in Ubuntu/Fedora
  2. Copy the same font to the fonts directory
  3. Enable RFP on your profile and make sure gfx.e10s.font-list.shared is true
  4. Go to any website, and set the font you chose as a font-family with the inspector: it will be rendered as the default font-family (e.g., serif)
  5. Set gfx.e10s.font-list.shared to false and restart Firefox
  6. Repeat 4 again: this time the font will be rendered (which is the expected behavior)
Regressions: 1745715

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcdonough)
Severity: -- → S3
Flags: needinfo?(emcdonough) → needinfo?(jfkthame)
Priority: -- → P3
Regressed by: 1745715
No longer regressions: 1745715

Set release status flags based on info from the regressing bug 1745715

Set release status flags based on info from the regressing bug 1745715

I think this should simply be a question of initialization order.

@pierov, could you try the attached patch and confirm whether it fixes the behavior for you? Thanks! If so, I'll tag it for review.

Flags: needinfo?(jfkthame) → needinfo?(pierov)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

OK, I tested this on my Ubuntu machine and confirmed that it makes the font visible, as expected. (Additional testing welcome, but I'm going to go ahead and ask for review here so we can land the patch.)

Flags: needinfo?(pierov)
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d43ce763a307
Ensure correct font-visibility for bundled fonts on Linux when they 'shadow' system-installed families. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch

Yes, I confirm it works, thank you!
(sorry for the delay)

The patch landed in nightly and beta is affected.
:jfkthame, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox113 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jfkthame)
Flags: needinfo?(jfkthame)
QA Whiteboard: [qa-114b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: