Bug 253464
| Summary: | AX: Consider simplifying AccessibilityObject::supportsPressAction, AccessibilityObject::actionElement, and AccessibilityObject::press | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> |
| Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | andresg_22, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tyler Wilcock
Right now, AccessibilityObject::supportsPressAction and AccessibilityObject::actionElement do complicated and expensive traversals and heuristics to determine if we can expose otherwise inaccessible click handler elements. For example:
<span onclick="handleClick(this)" style="...styled to look like a button...">
Open Shopping Cart (inaccessible because there is no role="button")
</span>
We should consider reworking all of these functions to instead expose (compute accessibilityIsIgnored = false) elements with click handlers that have only one accessible descendant, as this will be simpler than our current implementation.
Context: https://bugs.webkit.org/show_bug.cgi?id=253337#c9
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/106319562>