Bug 160981 - AX: iOS, Wrong axLabel on static text if heading has multiple children
Summary: AX: iOS, Wrong axLabel on static text if heading has multiple children
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-18 16:35 PDT by Nan Wang
Modified: 2016-08-19 12:25 PDT (History)
11 users (show)

See Also:


Attachments
Patch (5.69 KB, patch)
2016-08-18 16:55 PDT, Nan Wang
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2 (682.74 KB, application/zip)
2016-08-18 18:58 PDT, Build Bot
no flags Details
Patch (5.80 KB, patch)
2016-08-19 10:34 PDT, Nan Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nan Wang 2016-08-18 16:35:56 PDT
When heading has multiple children, each static text child seems to have the axLabel to be the concatenation of all the heading children's labels.

<rdar://problem/27827108>
Comment 1 Nan Wang 2016-08-18 16:55:10 PDT
Created attachment 286414 [details]
Patch
Comment 2 Build Bot 2016-08-18 18:58:49 PDT
Comment on attachment 286414 [details]
Patch

Attachment 286414 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1895740

New failing tests:
fast/scrolling/ios/scroll-events-back-forward.html
Comment 3 Build Bot 2016-08-18 18:58:52 PDT
Created attachment 286429 [details]
Archive of layout-test-results from ews122 for ios-simulator-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-elcapitan-wk2  Platform: Mac OS X 10.11.5
Comment 4 Nan Wang 2016-08-18 23:40:51 PDT
Comment on attachment 286414 [details]
Patch

test failure is not related to this patch.
Comment 5 chris fleizach 2016-08-19 09:01:00 PDT
Comment on attachment 286414 [details]
Patch

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

> Source/WebCore/ChangeLog:9
> +        no alternate texts. So we shouldn't use accessibilityLable to check for user defined texts

no alternate "text." - text is already plural here

accessibilityLable -> accessibilityLabel

this description isn't very clear to me... what is the problem with calling axLabel? what does it return, that baseDescription does not

> LayoutTests/accessibility/ios-simulator/heading-with-aria-label.html:40
> +        // Also make sure when the heading has multiple children, we are not messing up with

"messing up" is too colloquial here. I would say

"When a heading has multiple children, ensure ..."
Comment 6 Nan Wang 2016-08-19 10:34:14 PDT
Created attachment 286457 [details]
Patch

Update from review
Comment 7 WebKit Commit Bot 2016-08-19 12:25:09 PDT
Comment on attachment 286457 [details]
Patch

Clearing flags on attachment: 286457

Committed r204645: <http://trac.webkit.org/changeset/204645>
Comment 8 WebKit Commit Bot 2016-08-19 12:25:14 PDT
All reviewed patches have been landed.  Closing bug.