DumpRenderTree and WebKitTestRunner send events directly to WebHMTLView or WKView, which doesn't update [NSApp currentEvent]. But there are many places in WebKit that use the current event. I think that some flakiness I'm seeing on bots and locally is because of this. Notably, tests that log mouse move events (like platform/mac/fast/events/objc-event-api.html) get fake events based on current event, and I'm guessing that they get incorrect modifiers from that.
Created attachment 213120 [details] proposed patch
Comment on attachment 213120 [details] proposed patch Attachment 213120 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/2908174
Committed <http://trac.webkit.org/r154396>. EFL bot is wrong.