Repository navigation
script: Track loaded and failed FontFaceSet fonts - #50195
Merged
Merged
Conversation
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#65671) with upstreamable changes. |
Daniel-1600
force-pushed
the
fontfaceset-track-fonts
branch
from
November 24, 2026 23:01
44a23bd to
bb05407
Compare
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#65671). |
|
🔨 Triggering try run (#45595772035) for Linux (WPT) |
TimvdLippe
approved these changes
Nov 25, 2026
TimvdLippe
left a comment
Contributor
There was a problem hiding this comment.
Some minor comments, but overall LGTM
|
Test results for linux-wpt from try job (#45595772035): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (8)
|
|
✨ Try run (#45595772035) succeeded. |
Daniel-1600
force-pushed
the
fontfaceset-track-fonts
branch
from
November 25, 2026 22:43
bb05407 to
03eb2af
Compare
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#65671). |
Signed-off-by: Daniel Mungai <[email protected]>
Daniel-1600
force-pushed
the
fontfaceset-track-fonts
branch
from
November 25, 2026 22:47
03eb2af to
57108cd
Compare
Collaborator
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#65671). |
TimvdLippe
approved these changes
Nov 26, 2026
TimvdLippe
left a comment
Contributor
There was a problem hiding this comment.
Thank you for adding the additional comments!
devin-ai-integration Bot
pushed a commit
to baigojahanzaib/servo
that referenced
this pull request
Nov 27, 2026
Implemented the `[[LoadingFonts]]`, `[[LoadedFonts]]` and `[[FailedFonts]]` slots of `FontFaceSet` and use them when switching the set to loaded, so that the `loadingdone` event now carries the fonts that finished loading and `loadingerror` is fired with the fonts that failed. Previously `loadingdone` always had an empty `fontfaces` list and `loadingerror` was never fired. - Fonts are added to `[[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()` and `clear()` now also remove fonts from these lists. `Delete` needs a `JSContext` for this, so it was added to `Bindings.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.html` and `css/css-font-loading/fontfaceset-loadingerror-event.html`. Part of: servo#29376 Signed-off-by: Daniel Mungai <[email protected]>
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