Stop using callOnMainThread() / isMainThread() is WebKit2 and enforce this rule via the style checker. callOnMainRunLoop() / isMainRunLoop() are safer alternatives in WebKit2 because they do the right thing even if an app uses both WebKit2 and WebKit1 (with WebThread) on iOS.
Created attachment 422724 [details] Patch
Created attachment 422727 [details] Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Created attachment 422737 [details] Patch
Committed r274174: <https://commits.webkit.org/r274174> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422737 [details].
<rdar://problem/75234452>
Follow-up in <https://commits.webkit.org/r274194>.