| Summary: | AX: The isolated tree needs to fix-up table cell parent relationships | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> | ||||||||||
| Component: | Accessibility | Assignee: | Tyler Wilcock <tyler_w> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Tyler Wilcock
2022-02-04 13:56:39 PST
Created attachment 450936 [details]
Patch
Comment on attachment 450936 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450936&action=review > Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:212 > + extra newline > Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:389 > + AXID computeParentForObject(AXCoreObject&, AXID assumedParentID); feel like compute might not be a necessary verb here is parentIDForObject() sufficient? > > Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h:389
> > + AXID computeParentForObject(AXCoreObject&, AXID assumedParentID);
>
> feel like compute might not be a necessary verb here
>
> is
>
> parentIDForObject()
>
> sufficient?
Yeah, that sounds good to me. Will change in the next revision of the patch.
Created attachment 450986 [details]
Patch
Created attachment 450987 [details]
Patch
Created attachment 451025 [details]
Patch
Can we fix the table hierarchy in the live tree instead? Does this fix some of the existing table tests that are failing in ITM? Thanks. (In reply to Andres Gonzalez from comment #8) > Can we fix the table hierarchy in the live tree instead? The problem is that AccessibilityTableColumn and AccessibilityTableHeaderContainer return children that they shouldn't (e.g table cells). The AccessibilityTableRows also (rightly) return cells as their children. Unfortunately, it seems that AppKit expects that AccessibilityTableColumn and AccessibilityTableHeaderContainer return these children, so I think this workaround is required. > Does this fix some of the existing table tests that are failing in ITM? No, seems like those tests are failing for other reasons, and we don't have a test that exercises search traversal of a table (until this patch). Committed r289238 (246922@main): <https://commits.webkit.org/246922@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451025 [details]. |