Title: [293762] trunk/Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp
Revision
293762
Author
cdu...@apple.com
Date
2022-05-03 23:25:05 -0700 (Tue, 03 May 2022)

Log Message

REGRESSION(r293285): ASSERTION FAILED: m_isConstructed /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/WebKitBuild/Debug/usr/local/include/wtf/NeverDestroyed.h(152) : ..... [T = const WTF::AtomString, AccessTraits = WTF::MainThreadAccessTraits]
https://bugs.webkit.org/show_bug.cgi?id=240051

Reviewed by Yusuke Suzuki.

Make sure the tests initialize CommonAtomStrings since the implementation being tested seems
to rely on them.

* Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp:
(TestWebKitAPI::createDocument):

Canonical link: https://commits.webkit.org/250241@main

Modified Paths

Diff

Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp (293761 => 293762)


--- trunk/Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp	2022-05-04 06:19:19 UTC (rev 293761)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp	2022-05-04 06:25:05 UTC (rev 293762)
@@ -25,6 +25,7 @@
 
 #include "config.h"
 
+#include <WebCore/CommonAtomStrings.h>
 #include <WebCore/DocumentInlines.h>
 #include <WebCore/HTMLBodyElement.h>
 #include <WebCore/HTMLDivElement.h>
@@ -53,6 +54,8 @@
 {
     HTMLNames::init();
     WebKitFontFamilyNames::init();
+    initializeCommonAtomStrings();
+
     auto settings = Settings::create(nullptr);
     auto document = Document::create(settings.get(), aboutBlankURL());
     auto documentElement = HTMLHtmlElement::create(document);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to