[ContentChangeObserver] Use aria role as a hint whether a tap should result in a...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 18:57:51 +0000 (18:57 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 18:57:51 +0000 (18:57 +0000)
commitd8867f303a10e576db863e7eee9c3261e1165893
tree8499ce10ba0121550ec42b41bd261e9feeedb498
parent3c32d401d41dee7e7c15883fa4738504d9a44f50
[ContentChangeObserver] Use aria role as a hint whether a tap should result in a synthetic click
https://bugs.webkit.org/show_bug.cgi?id=196988
<rdar://problem/49955328>

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/events/touch/ios/content-observation/tap-on-input-looking-div-with-role.html

* accessibility/AccessibilityObject.h:

Source/WebKit:

Tapping on elements with cretain aria role attributes should trigger synthetic click the same way it does on form control elements.

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

LayoutTests:

* fast/events/touch/ios/content-observation/tap-on-input-looking-div-with-role-expected.txt: Added.
* fast/events/touch/ios/content-observation/tap-on-input-looking-div-with-role.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244392 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-looking-div-with-role-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/content-observation/tap-on-input-looking-div-with-role.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityObject.cpp
Source/WebCore/accessibility/AccessibilityObject.h
Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm