[Webkit-unassigned] [Bug 225790] document.fonts.ready is sometimes still resolved too quickly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 13 17:41:52 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225790

--- Comment #9 from Cameron McCormack (:heycam) <heycam at apple.com> ---
(In reply to Ryosuke Niwa from comment #4)
> Hm... we do explicitly trigger a style resolution here:
> 
> Ref<FontFaceSet> Document::fonts()
> {
>     updateStyleIfNeeded();

I tried replacing this with updateLayout(), but it still didn't help my testcase.  I got this output instead:

FontFaceSet.status in onload:   loading
FontFace.status in onload:      loading
FontFaceSet.status after ready: loading
FontFace.status after ready:    loading

which is even more confusing, since if FontFaceSet.status in onload is loading, then we should already have done the ready state promise replacement, and for this test, that replacement should only happen once.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210514/2e130138/attachment.htm>


More information about the webkit-unassigned mailing list