[WinCairo][WK2] ASSERT(isUIThread()) is failing since r254723
https://bugs.webkit.org/show_bug.cgi?id=206394
Reviewed by Carlos Alberto Lopez Perez.
AtomString::init() should be called after
WTF::initializeThreading() is called on Windows because it has
ASSERT(isUIThread()) and Windows doesn't have a API to get main
thread handle like pthread_main_np.
* Shared/WebKit2Initialize.cpp:
(WebKit::InitializeWebKit2): Call AtomString::init() after JSC::initializeThreading().
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index 1abcfba..25dfe33 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,18 @@
+2020-01-17 Fujii Hironori <Hironori.Fujii@sony.com>
+
+ [WinCairo][WK2] ASSERT(isUIThread()) is failing since r254723
+ https://bugs.webkit.org/show_bug.cgi?id=206394
+
+ Reviewed by Carlos Alberto Lopez Perez.
+
+ AtomString::init() should be called after
+ WTF::initializeThreading() is called on Windows because it has
+ ASSERT(isUIThread()) and Windows doesn't have a API to get main
+ thread handle like pthread_main_np.
+
+ * Shared/WebKit2Initialize.cpp:
+ (WebKit::InitializeWebKit2): Call AtomString::init() after JSC::initializeThreading().
+
2020-01-17 Chris Dumez <cdumez@apple.com>
IPC hardening for WebPasteboardProxy::SetPasteboardBufferForType message
diff --git a/Source/WebKit/Shared/WebKit2Initialize.cpp b/Source/WebKit/Shared/WebKit2Initialize.cpp
index 5456a25..fbb7384 100644
--- a/Source/WebKit/Shared/WebKit2Initialize.cpp
+++ b/Source/WebKit/Shared/WebKit2Initialize.cpp
@@ -39,9 +39,9 @@
void InitializeWebKit2()
{
- AtomString::init();
JSC::initializeThreading();
RunLoop::initializeMainRunLoop();
+ AtomString::init();
WTF::RefCountedBase::enableThreadingChecksGlobally();