Bug 231478

Summary: AX: AccessibilityMenuListPopup shouldn't add ignored children
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW    
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: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Tyler Wilcock
Reported 2021-10-09 09:03:16 PDT
An invariant of our accessibility tree is that it doesn't include things that are ignored. Most paths end up at AccessibilityObject::insertChild, which prevents ignored children from being inserted. However, AccessibilityMenuListPopup::addChildren directly calls m_children.append, so it should ensure the things it adds aren't ignored first.
Attachments
Patch (2.26 KB, patch)
2021-10-09 09:09 PDT, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2021-10-09 09:03:30 PDT
Tyler Wilcock
Comment 2 2021-10-09 09:09:02 PDT
chris fleizach
Comment 3 2021-10-09 09:24:00 PDT
Comment on attachment 440711 [details] Patch Is it possible to add an example of an ignored menu list item in a layout test?
Tyler Wilcock
Comment 4 2021-10-09 11:51:44 PDT
(In reply to chris fleizach from comment #3) > Comment on attachment 440711 [details] > Patch > > Is it possible to add an example of an ignored menu list item in a layout > test? We can't test this because AccessibilityMenuListPopup is ignored on Mac and iOS, so its addChildren method never gets called, and thus we can't exercise the changed code. This patch would make this class do the right thing should it become un-ignored.
chris fleizach
Comment 5 2021-10-09 13:14:16 PDT
Which platforms will this have an effect on?
Andres Gonzalez
Comment 6 2021-10-12 07:09:07 PDT
(In reply to Tyler Wilcock from comment #4) > (In reply to chris fleizach from comment #3) > > Comment on attachment 440711 [details] > > Patch > > > > Is it possible to add an example of an ignored menu list item in a layout > > test? > > We can't test this because AccessibilityMenuListPopup is ignored on Mac and > iOS, so its addChildren method never gets called, and thus we can't exercise > the changed code. This patch would make this class do the right thing should > it become un-ignored. How can AccessibilityMenuListPopup become un-ignored?
Note You need to log in before you can comment on or make changes to this bug.