[Font Loading] Crash when a single load request causes multiple fonts to fail loading
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index 63d8ba0..c1d43fc 100644 (file)
@@ -6706,6 +6706,7 @@ Document& Document::ensureTemplateDocument()
 
 Ref<FontFaceSet> Document::fonts()
 {
+    updateStyleIfNeeded();
     return fontSelector().fontFaceSet();
 }