Web Inspector: Remote Inspector indicate callback should always happen on the main...
authorpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2019 12:42:38 +0000 (12:42 +0000)
committerpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2019 12:42:38 +0000 (12:42 +0000)
commita6da6a8fc9ae51e12fb6f7f5e5fc8ee47cbb97ac
tree126ea1f6e49b4126bd172790bca339d9301210d0
parent78fef96e4b414e1afd22b65f2d5a745e3d14f254
Web Inspector: Remote Inspector indicate callback should always happen on the main thread
https://bugs.webkit.org/show_bug.cgi?id=196513
<rdar://problem/49498284>

Reviewed by Devin Rousso.

Source/JavaScriptCore:

* inspector/remote/cocoa/RemoteInspectorCocoa.mm:
(Inspector::RemoteInspector::receivedIndicateMessage):
When we have a WebThread, don't just run on the WebThread,
run on the MainThread with the WebThreadLock.

Source/WebCore:

* platform/ios/wak/WebCoreThreadSystemInterface.cpp:
(InitWebCoreThreadSystemInterface):

Source/WTF:

* wtf/MainThread.h:
* wtf/cocoa/MainThreadCocoa.mm:
(WTF::dispatchAsyncOnMainThreadWithWebThreadLockIfNeeded):
* wtf/ios/WebCoreThread.cpp:
* wtf/ios/WebCoreThread.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm
Source/WTF/ChangeLog
Source/WTF/wtf/MainThread.h
Source/WTF/wtf/cocoa/MainThreadCocoa.mm
Source/WTF/wtf/ios/WebCoreThread.cpp
Source/WTF/wtf/ios/WebCoreThread.h
Source/WebCore/ChangeLog
Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.cpp