NSEvent event trackers don't work from WebKitTestRunner
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2018 17:26:25 +0000 (17:26 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2018 17:26:25 +0000 (17:26 +0000)
commit77db9d1e89597a3a199966c621b6cbd3f29b2e53
treee414c570c24f3f89bea5ccfbccfd9b1e86b7f337
parent9ce03833c4534bb9851ccde070eaf95f0d58c258
NSEvent event trackers don't work from WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=185383
rdar://problem/40025045

Patch by Jeremy Jones <jeremyj@apple.com> on 2018-05-14
Reviewed by Simon Fraser.

Tools:

Post simulated wheel events to _sendEventToObservers: so they can be handled by NSEvent observers.
NSEvent swipe tracking is used for webkit swipe navigation.

* WebKitTestRunner/mac/EventSenderProxy.mm:
(WTR::EventSenderProxy::mouseScrollByWithWheelAndMomentumPhases):

LayoutTests:

This test initiates back navigation with wheel events.

* swipe/wheel-event-initiated-back-navigation-expected.txt: Added.
* swipe/wheel-event-initiated-back-navigation.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/swipe/wheel-event-initiated-back-navigation-expected.txt [new file with mode: 0644]
LayoutTests/swipe/wheel-event-initiated-back-navigation.html [new file with mode: 0644]
Tools/ChangeLog
Tools/WebKitTestRunner/mac/EventSenderProxy.mm