UIKeyboard can call into _handleKeyEvent directly from the main thread.
<rdar://problem/52937390>
Created attachment 373908 [details] Fixes the bug
Comment on attachment 373908 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=373908&action=review > Source/WebKitLegacy/mac/ChangeLog:8 > + Take the web thread lock in this function since it can be directly invoked from UIKit in the main thread. Can UIKit take the lock before calling this? I think that would be better than here in WebKitLegacy.
Comment on attachment 373908 [details] Fixes the bug Ok