[ContentChangeObserver] Taping on a form control should always result in click.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2019 21:07:51 +0000 (21:07 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2019 21:07:51 +0000 (21:07 +0000)
commitc8f6bbc718bc62da2f8965c57e18e1ba25684927
tree8a7dd506246c6899148572d108d87079aecfc046
parent0c8100e145eb078728b2ab6159b8610ebefd810b
[ContentChangeObserver] Taping on a form control should always result in click.
https://bugs.webkit.org/show_bug.cgi?id=196177

Reviewed by Simon Fraser.

Source/WebKit:

This patch enures that we send a synthetic click when the traget node is a form control (button, edit field etc) even if
the mousemove brings up some hover content.

* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::handleSyntheticClick):

LayoutTests:

* fast/events/touch/ios/content-observation/tap-on-input-type-button-element-expected.txt: Added.
* fast/events/touch/ios/content-observation/tap-on-input-type-button-element.html: Added.
* fast/events/touch/ios/content-observation/tap-on-input-type-text-element-expected.txt: Added.
* fast/events/touch/ios/content-observation/tap-on-input-type-text-element.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-type-button-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-type-button-element.html [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-type-text-element-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-type-text-element.html [new file with mode: 0644]
Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm