Bug 164950

Summary: AX: role=treeitem accessible name not spoken to VoiceOver macOS when using string contained inside element
Product: WebKit Reporter: Paul J. Adam <paul>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: aboxhall, ahmad.saleem792, apinheiro, cfleizach, commit-queue, dmazzoni, jcraig, jdiggs, mario, n_wang, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 10   
Hardware: Mac   
OS: macOS 10.12   
Attachments:
Description Flags
patch cfleizach: review+

Description Paul J. Adam 2016-11-18 13:29:01 PST
Steps to Reproduce:
1. Turn on VoiceOver on macOS 10.12.1 and Open Safari 10.0.1.
2. Visit http://w3c.github.io/aria-practices/examples/treeview/treeview-1a/treeview-1a.html.
3. Expand the Projects treeitem.
4. Set focus to project-1.docx treeitem.

Expected Results:
VoiceOver speaks "project-1.docx treeitem".

Actual Results:
VoiceOver speaks "File Viewer table No selection.".
Comment 1 Radar WebKit Bug Importer 2016-11-18 13:29:15 PST
<rdar://problem/29337573>
Comment 2 Nan Wang 2017-01-11 14:51:36 PST
Created attachment 298616 [details]
patch
Comment 3 chris fleizach 2017-01-11 15:59:54 PST
Comment on attachment 298616 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=298616&action=review

> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:1366
> +    // Treeitems missing a label are labeled by all child elements.

tree items is two words
Comment 4 Nan Wang 2017-01-11 16:12:45 PST
committed: https://trac.webkit.org/changeset/210605