[Cocoa] REGRESSION(W3C): actions for key equivalents are not respected
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:32:36 +0000 (20:32 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:32:36 +0000 (20:32 +0000)
commita08ef2f735bc32ffff4c88f1b1228141e1225ad4
tree096e07b68770c0aabbea7fbdd68b7eec5747fa2e
parent0fd25e25d5aa4905a6386d89852e696fbbac0ad2
[Cocoa] REGRESSION(W3C): actions for key equivalents are not respected
https://bugs.webkit.org/show_bug.cgi?id=186936

Reviewed by Timothy Hatcher.

* UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::isSimulatingUserInteraction const):
This erroneously reported false unless there was both a mouse and key interaction
being dispatched, which is not possible in the current serial event simulation model.
As a result, Safari could not tell whether the action came from a simulated event
or the user, and thus rejected all key equivalents like Cmd-A,V,C,X.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp