Skip to content

Fix the disableFontFace and fontExtraProperties asserts in the FontFaceObject constructor (PR 20197 follow-up)#20836

Merged
Snuffleupagus merged 1 commit intomozilla:masterfrom
Snuffleupagus:FontFaceObject-fix-asserts
Mar 9, 2026
Merged

Fix the disableFontFace and fontExtraProperties asserts in the FontFaceObject constructor (PR 20197 follow-up)#20836
Snuffleupagus merged 1 commit intomozilla:masterfrom
Snuffleupagus:FontFaceObject-fix-asserts

Conversation

@Snuffleupagus
Copy link
Collaborator

In PR #19548 these checks were added to ensure that the font-data sent from the worker-thread always include correct disableFontFace and fontExtraProperties data.

For some reason PR #20197 then changed the code such that these checks became effectively pointless, since these properties are now checked after the fact and the new getters provide fallback values.

…ontFaceObject` constructor (PR 20197 follow-up)

In PR 19548 these checks were added to ensure that the font-data sent from the worker-thread *always* include correct `disableFontFace` and `fontExtraProperties` data.

For some reason PR 20197 then changed the code such that these checks became effectively pointless, since these properties are now checked after the fact *and* the new getters provide fallback values.
@Snuffleupagus
Copy link
Collaborator Author

/botio browsertest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/6cac590b2f12504/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 1

Live output at: http://54.193.163.58:8877/f6938ac303cacd2/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/6cac590b2f12504/output.txt

Total script time: 18.89 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.241.84.105:8877/6cac590b2f12504/reftest-analyzer.html#web=eq.log

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/f6938ac303cacd2/output.txt

Total script time: 27.35 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/f6938ac303cacd2/reftest-analyzer.html#web=eq.log

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.76%. Comparing base (cc680f6) to head (9f69617).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20836      +/-   ##
==========================================
+ Coverage   62.68%   62.76%   +0.07%     
==========================================
  Files         169      169              
  Lines      120476   120479       +3     
==========================================
+ Hits        75521    75613      +92     
+ Misses      44955    44866      -89     
Flag Coverage Δ
fonttest 7.66% <ø> (?)
unittestcli 62.73% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit 873378b into mozilla:master Mar 9, 2026
12 checks passed
@Snuffleupagus Snuffleupagus deleted the FontFaceObject-fix-asserts branch March 9, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants