WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
196988
[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
Summary
[ContentChangeObserver] Use aria role as a hint whether a tap should result i...
alan
Reported
2019-04-16 14:55:26 PDT
role="checkbox" e.g.
Attachments
Patch
(9.97 KB, patch)
2019-04-16 15:29 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(10.02 KB, patch)
2019-04-17 10:08 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-04-16 14:56:01 PDT
<
rdar://problem/49955328
>
alan
Comment 2
2019-04-16 15:29:18 PDT
Created
attachment 367581
[details]
Patch
chris fleizach
Comment 3
2019-04-16 15:45:19 PDT
Comment on
attachment 367581
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=367581&action=review
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:569 > +static bool isAriaRoleForImmediateClick(AccessibilityRole role)
feels like this might better live in AccessibilityObject. There's an existing bool AccessibilityObject::isARIAControl(AccessibilityRole ariaRole) that might be appropriate
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:572 > + || role == AccessibilityRole::Link || role == AccessibilityRole::List || role == AccessibilityRole::ListBox || role == AccessibilityRole::ListBoxOption || role == AccessibilityRole::ListItem
not sure we want to tap ListBox
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:575 > + || role == AccessibilityRole::SearchField || role == AccessibilityRole::Slider || role == AccessibilityRole::SliderThumb || role ==AccessibilityRole::SpinButton || role == AccessibilityRole::SpinButtonPart
spacing role ==AccessibilityRole::SpinButton
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:576 > + || role == AccessibilityRole::TextArea || role == AccessibilityRole::TextField || role == AccessibilityRole::ToggleButton;
do we want to tap text areas and text fields?
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:577 > +}
this might be better written as a switch statement
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:590 > + return isAriaRoleForImmediateClick(AccessibilityObject::ariaRoleToWebCoreRole(ariaRoleString));
ariaRoleToWebCoreRole should handle null and empty strings. you can probably remove this if
alan
Comment 4
2019-04-17 10:08:59 PDT
Created
attachment 367641
[details]
Patch
alan
Comment 5
2019-04-17 10:10:50 PDT
(In reply to chris fleizach from
comment #3
)
> Comment on
attachment 367581
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=367581&action=review
> > > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:569 > > +static bool isAriaRoleForImmediateClick(AccessibilityRole role) > > feels like this might better live in AccessibilityObject. There's an existing > > bool AccessibilityObject::isARIAControl(AccessibilityRole ariaRole) that > might be appropriate
I didn't know about isARIAControl and isARIAInput! Thanks!
> > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:590 > > + return isAriaRoleForImmediateClick(AccessibilityObject::ariaRoleToWebCoreRole(ariaRoleString)); > > ariaRoleToWebCoreRole should handle null and empty strings. you can probably > remove this if
Good idea.
WebKit Commit Bot
Comment 6
2019-04-17 11:57:57 PDT
Comment on
attachment 367641
[details]
Patch Clearing flags on attachment: 367641 Committed
r244392
: <
https://trac.webkit.org/changeset/244392
>
WebKit Commit Bot
Comment 7
2019-04-17 11:57:59 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug