[Webkit-unassigned] [Bug 225728] New: some MathML WPTs need tweaking to avoid font loading race in WebKit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 12 18:45:02 PDT 2021


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

            Bug ID: 225728
           Summary: some MathML WPTs need tweaking to avoid font loading
                    race in WebKit
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

There are some MathML WPTs that rely on a web font, and they use document.fonts.ready from inside a window load event handler to wait until the font has been loaded before starting the test.  In WebKit, it looks like this is insufficient to wait for the font to be loaded, because (I'm assuming!) there is no guarantee that layout has been flushed by the time the load event handler runs, and despite relevant content being in the document that should cause a font load to start, the FontFaceSet does not wait for that flush to happen before resolving the ready Promise.  It probably should wait for that, but to avoid running into this font loading problem (since the WPTs aren't testing font loading specifically), let's tweak the way the tests wait.

-- 
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/20210513/e8ee23b4/attachment.htm>


More information about the webkit-unassigned mailing list