[Webkit-unassigned] [Bug 202548] New: FontFaceSet's ready promise is not always resolved
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 3 16:29:09 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=202548
Bug ID: 202548
Summary: FontFaceSet's ready promise is not always resolved
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mmaxfield at apple.com
CC: mmaxfield at apple.com
When we do layout on an element, FontRanges::glyphDataForCharacter() will cause the first available font to start loading, but will continue looking at subsequent fonts to see if there's a good one we can render while the load is happening. When looking for a fallback font, it calls FontRanges::Range::font() with a ExternalResourceDownloadPolicy set to Forbid. This is fine, except that a side effect of calling this function is that the CSSFontFace marks itself as Loading, which means document.fonts.ready is deferred. Then, the load finishes, and the subsequent CSSFontFace is never actually used, meaning it never exits the Loading state, which means document.fonts.ready never fires.
--
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/20191003/0f144e08/attachment.html>
More information about the webkit-unassigned
mailing list