AX: WebKit should not expose redundant AXGroups with missing role when the label is the same as the contents... Unless there are click/key event handlers or some other heuristic indicator of meaning.
VoiceOver users on staff found the following markup pattern problematic:
By default, WebKit exposes layout blocks as an AXGroup, and the aria-label as the AXTitle. This means users with bookended groups redundantly hear:
"1 group, 1, end of group"
"2 group, 3, end of group"
"3 group, 3, end of group"
Yes, it's an authoring problem, but it happens enough that I think we should work around it.
Proposal: On generic elements (GroupRole, not ApplicationGroupRole):
- If there is no explicit role, (With bug 169810, ARIA grouping roles will be WebCore ApplicationGroupRole, not WebCore GroupRole.)
- and if there is no click or key-down/up/press handler (nothing to make the AXGroup actionable)
- and if the content string matches the computed @aria-labelledby or @aria-label string...
Expose only the generic view: AXGroup with no AXTitle. VoiceOver will read the contents.