Assertion failed in Webcore::Process::setIdentifier()
authorsihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2018 15:54:45 +0000 (15:54 +0000)
committersihui_liu@apple.com <sihui_liu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2018 15:54:45 +0000 (15:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188404
<rdar://problem/43029137>

Reviewed by Chris Dumez.

App using both WebKit1 and WebKit may crash in WebKit initialization.

* platform/Process.cpp:
(WebCore::Process::setIdentifier):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234692 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/Process.cpp

index 3f02ca7..61c2db1 100644 (file)
@@ -1,3 +1,16 @@
+2018-08-08  Sihui Liu  <sihui_liu@apple.com>
+
+        Assertion failed in Webcore::Process::setIdentifier()
+        https://bugs.webkit.org/show_bug.cgi?id=188404
+        <rdar://problem/43029137>
+
+        Reviewed by Chris Dumez.
+
+        App using both WebKit1 and WebKit may crash in WebKit initialization.
+
+        * platform/Process.cpp:
+        (WebCore::Process::setIdentifier):
+
 2018-08-08  Charlie Turner  <cturner@igalia.com>
 
         Add CENC sanitization
index 6059747..c24d9e5 100644 (file)
@@ -35,7 +35,7 @@ static std::optional<ProcessIdentifier> globalIdentifier;
 
 void setIdentifier(ProcessIdentifier processIdentifier)
 {
-    ASSERT(isMainThread());
+    ASSERT(isUIThread());
     globalIdentifier = processIdentifier;
 }