Bug 106638 - AX: Computed hierarchical level is not consistent with aria-level
Summary: AX: Computed hierarchical level is not consistent with aria-level
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dominic Mazzoni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-11 00:48 PST by Dominic Mazzoni
Modified: 2013-01-11 10:08 PST (History)
7 users (show)

See Also:


Attachments
Patch (9.42 KB, patch)
2013-01-11 00:52 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff
Patch (11.90 KB, patch)
2013-01-11 09:23 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff
Patch (11.87 KB, patch)
2013-01-11 09:47 PST, Dominic Mazzoni
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Mazzoni 2013-01-11 00:48:38 PST
The specs for aria-level say that it's 1-based (http://www.w3.org/TR/wai-aria/states_and_properties#aria-level), but when no aria-level is provided, WebKit computes a 0-based hierarchical level for a tree, so they're inconsistent.

Mac uses 0-based levels, so I think the right solution is for WebKit to be 1-based internally (to match the aria-level spec) and the Mac impl should subtract one when returning disclosureLevel.
Comment 1 Dominic Mazzoni 2013-01-11 00:52:43 PST
Created attachment 182285 [details]
Patch
Comment 2 Build Bot 2013-01-11 02:23:06 PST
Comment on attachment 182285 [details]
Patch

Attachment 182285 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/15806304

New failing tests:
platform/mac/accessibility/aria-treegrid.html
Comment 3 Dominic Mazzoni 2013-01-11 09:23:24 PST
Created attachment 182353 [details]
Patch
Comment 4 chris fleizach 2013-01-11 09:42:25 PST
Comment on attachment 182353 [details]
Patch

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

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapper.mm:2484
> +            level -= 1;

it looks like you're not actually using level
Comment 5 Dominic Mazzoni 2013-01-11 09:46:58 PST
(In reply to comment #4)
> (From update of attachment 182353 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182353&action=review
> 
> > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapper.mm:2484
> > +            level -= 1;
> 
> it looks like you're not actually using level

Oops, you're right.
Comment 6 Dominic Mazzoni 2013-01-11 09:47:11 PST
Created attachment 182356 [details]
Patch
Comment 7 WebKit Review Bot 2013-01-11 10:08:22 PST
Comment on attachment 182356 [details]
Patch

Clearing flags on attachment: 182356

Committed r139456: <http://trac.webkit.org/changeset/139456>
Comment 8 WebKit Review Bot 2013-01-11 10:08:26 PST
All reviewed patches have been landed.  Closing bug.