[Webkit-unassigned] [Bug 158884] [Font Loading] The callback passed to document.fonts.ready should always be called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 18 03:21:28 PDT 2016


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

--- Comment #1 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
Created attachment 281615
  --> https://bugs.webkit.org/attachment.cgi?id=281615&action=review
Patch

This is a simple patch to set m_isReady to false iff no fonts are loading. That obviously fixes the trivial test case and that seems to give better result on http://tests.mathml-association.org/ when I apply it on the MathML refactoring branch (although there are still some random failures). But I'm not actually sure this patch is quite correct and I didn't find any tests for document.fonts.ready in LayoutTests...

I'd like to highlight this additional comment from the font loading draft: "The ready promise is only fulfilled *after layout operations complete* and no additional font loads are necessary." (emphasis is mine).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160618/719ca08a/attachment-0001.html>


More information about the webkit-unassigned mailing list