• Aaron Leventhal's avatar
    Menuitem in group needs name from contents · e12d47e1
    Aaron Leventhal authored
    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: default avatarNektarios 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}
    e12d47e1
computed-name.html 13.6 KB