<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Font Loading] The callback passed to document.fonts.ready should always be called"
href="https://bugs.webkit.org/show_bug.cgi?id=158884#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Font Loading] The callback passed to document.fonts.ready should always be called"
href="https://bugs.webkit.org/show_bug.cgi?id=158884">bug 158884</a>
from <span class="vcard"><a class="email" href="mailto:fred.wang@free.fr" title="Frédéric Wang (:fredw) <fred.wang@free.fr>"> <span class="fn">Frédéric Wang (:fredw)</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=281615&action=diff" name="attach_281615" title="Patch">attachment 281615</a> <a href="attachment.cgi?id=281615&action=edit" title="Patch">[details]</a></span>
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 <a href="http://tests.mathml-association.org/">http://tests.mathml-association.org/</a> 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).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>