Repository navigation
script: Track loaded and failed FontFaceSet fonts - #65671
Merged
servo-wpt-sync merged 1 commit intoNov 26, 2026
Merged
Conversation
wpt-pr-bot
approved these changes
Nov 24, 2026
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Servo project.
servo-wpt-sync
force-pushed
the
servo_export_50195
branch
2 times, most recently
from
November 25, 2026 22:46
28b70cd to
4c9db25
Compare
Signed-off-by: Daniel Mungai <[email protected]>
servo-wpt-sync
force-pushed
the
servo_export_50195
branch
from
November 25, 2026 22:51
4c9db25 to
fc895c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented the
[[LoadingFonts]],[[LoadedFonts]]and[[FailedFonts]]slots ofFontFaceSetand use them when switching the set to loaded, so that theloadingdoneevent now carries the fonts that finished loading andloadingerroris fired with the fonts that failed. Previouslyloadingdonealways had an emptyfontfaceslist andloadingerrorwas never fired.[[LoadingFonts]]when they start loading, and moved to[[LoadedFonts]]or[[FailedFonts]]when they finish. The set now only switches to loading when[[LoadingFonts]]was empty, as the spec requires.delete()andclear()now also remove fonts from these lists.Deleteneeds aJSContextfor this, so it was added toBindings.conf.I havent covered the css-declared fonts in this pr will cover that on follow up pr
Testing: Added two new WPT tests,
css/css-font-loading/fontfaceset-loadingdone-event.htmlandcss/css-font-loading/fontfaceset-loadingerror-event.html.Part of: #29376
Reviewed in servo/servo#50195