Menuitem in group needs name from contents
Fixes regression from CL:2142611 where a menuitem inside of a group no longer gets an accessible name. This was due to moving kMenuButton inside the NameFromContents() switch, such that it would no longer get a name from contents. Currently, a role=menuitem inside a role=group gets remapped to kMenuButton via AXObject::RemapAriaRoleDueToParent(). The purpose of remapping menuitem inside of a group to kMenuButton is to expose it as AXMenuButton instead of AXMenuItem on OS, per CORE-AAM. This remapping may be removed in the future, and is an open issue in CORE-AAM. See https://github.com/w3c/core-aam/issues/78 Bug: 1114712 Change-Id: Iae23b2351e72486e1cf3bf4b96ce1ff283e4ad97 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2353019Reviewed-by:Nektarios Paisios <nektar@chromium.org> Commit-Queue: Nektarios Paisios <nektar@chromium.org> Auto-Submit: Aaron Leventhal <aleventhal@chromium.org> Cr-Commit-Position: refs/heads/master@{#797667}
Showing
Please register or sign in to comment