RESOLVED WONTFIX304381
A FontFaceSet created with `new FontFaceSet` doesn't get unblocked by document loading
https://bugs.webkit.org/show_bug.cgi?id=304381
Summary A FontFaceSet created with `new FontFaceSet` doesn't get unblocked by documen...
Simon Fraser (smfr)
Reported 2025-12-17 21:07:20 PST
FontFaceSet has a notion of "pending on the environment"[1], which generally means waiting for document load. This blocks resolving the ready promise. FontFaceSets created in script (like `new FontFaceSet`) are never registered to be notified when document load completes; we only notify the fontSelector's FontFaceSet: if (RefPtr fontSelector = fontSelectorIfExists()) { if (RefPtr fontFaceSet = fontSelector->fontFaceSetIfExists()) fontFaceSet->documentDidFinishLoading(); I had to fix LayoutTests/fast/text/font-loading-multiple-sets.html to work around this. [1] https://drafts.csswg.org/css-font-loading/#fontfaceset-pending-on-the-environment
Attachments
Simon Fraser (smfr)
Comment 1 2025-12-18 15:15:56 PST
Moot after bug 276794 is fixed.
Radar WebKit Bug Importer
Comment 2 2025-12-24 21:08:10 PST
Simon Fraser (smfr)
Comment 3 2026-01-05 15:05:24 PST
The FontFaceSet constructor was removed.
Note You need to log in before you can comment on or make changes to this bug.