Bug 118511 - AX: WebKit doesn't map aria-sort=other on OS X
Summary: AX: WebKit doesn't map aria-sort=other on OS X
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Samuel White
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-07-09 09:44 PDT by James Craig
Modified: 2013-09-25 11:19 PDT (History)
9 users (show)

See Also:


Attachments
Patch. (4.84 KB, patch)
2013-09-24 16:00 PDT, Samuel White
no flags Details | Formatted Diff | Diff
Updated patch. (7.04 KB, patch)
2013-09-25 10:32 PDT, Samuel White
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2013-07-09 09:44:42 PDT
WebKit doesn't map aria-sort=other on OS X. Not sure if this is a platform-specific problem or if it represents a WebCore internal bug as well.

ARIA CR test case:
https://dvcs.w3.org/hg/pfwg/raw-file/default/ARIA/1.0/tests/test-files/roles-properties-supported/roles-properties-supported-columnheader-aria-sort-other.html

related to the original implementation bug 53842
Comment 1 Radar WebKit Bug Importer 2013-07-09 09:45:18 PDT
<rdar://problem/14390108>
Comment 2 James Craig 2013-07-09 09:50:11 PDT
ARIA CR Test Case 168
Comment 3 James Craig 2013-07-09 09:51:28 PDT
Expected AXSortDirection: AXUnknownSortDirection
Comment 4 Samuel White 2013-09-24 16:00:25 PDT
Created attachment 212513 [details]
Patch.

Added support for "other" aria-sort order per http://www.w3.org/TR/wai-aria/complete#aria-sort
Comment 5 chris fleizach 2013-09-24 16:13:52 PDT
It still doesn't seem that this exposes anything to the Mac platform
Comment 6 Samuel White 2013-09-24 16:27:00 PDT
(In reply to comment #5)
> It still doesn't seem that this exposes anything to the Mac platform

If you look at the -additionalAccessibilityAttributeNames method in WebAccessibilityObjectWrapperMac.mm you can see that we were determining NSAccessibilitySortDirectionAttribute inclusion by checking:

m_object->sortDirection() != SortDirectionNone

Previously, "other" would cause SortDirectionNone to be returned so an element would NOT expose AXSortDirection in this case.

Your confusion means I should update the test to make this check more explicit. Thanks!
Comment 7 Samuel White 2013-09-25 10:32:49 PDT
Created attachment 212597 [details]
Updated patch.

Updated test to make it more clear when an element exposes AXSortDirection.

Before this patch, elements with an aria-sort value of "other" would not expose AXSortDirection. With this patch these elements correctly expose this attribute and return a value of AXUnknownSortDirection.
Comment 8 WebKit Commit Bot 2013-09-25 11:19:51 PDT
Comment on attachment 212597 [details]
Updated patch.

Clearing flags on attachment: 212597

Committed r156409: <http://trac.webkit.org/changeset/156409>
Comment 9 WebKit Commit Bot 2013-09-25 11:19:54 PDT
All reviewed patches have been landed.  Closing bug.