On Mac, certain elements in the Views tree need to be leaf nodes for accessibility - we don't want their children in the accessibility tree. @patricialor added this change to support this:
https://codereview.chromium.org/2119413004
It currently works by setting the role to IGNORED.
As we're trying to share more Views accessibility code with Chrome OS, we need a better cross-platform solution. ChromeVox isn't aware of the IGNORED role. Perhaps this needs to be supported at a lower level in Views accessibility so that a View can override its list of children for accessibility, or maybe something simpler like it can just mark itself as a leaf node.
Perhaps we can even do that automatically for many common cases, like Views with certain widget roles with no focusable descendants can safely be marked as leafs.
Comment 1 by dtseng@chromium.org
, Dec 21 2017