Bug 115499

Summary: AX: aria-checked not exposed correctly on menuitemcheckbox or menuitemradio roles
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, ap, buildbot, cfleizach, commit-queue, dmazzoni, jcraig, jdiggs, mitz, rniwa, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
buildbot: commit-queue-
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2
none
patch
none
patch
none
patch none

Description James Craig 2013-05-01 16:59:03 PDT
AX: aria-checked not exposed correctly on menuitemcheckbox or menuitemradio roles

https://dvcs.w3.org/hg/pfwg/raw-file/default/ARIA/1.0/tests/test-files/_/777.htm
Comment 1 Radar WebKit Bug Importer 2013-05-01 16:59:18 PDT
<rdar://problem/13787768>
Comment 2 James Craig 2013-05-01 17:01:18 PDT
Expected AXMenuItemMarkChar: ✓
Comment 3 chris fleizach 2013-05-02 23:30:50 PDT
Created attachment 200390 [details]
patch
Comment 4 Build Bot 2013-05-03 01:16:07 PDT
Comment on attachment 200390 [details]
patch

Attachment 200390 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/388385

New failing tests:
platform/mac/accessibility/aria-menuitem-checked-value.html
Comment 5 Build Bot 2013-05-03 01:16:09 PDT
Created attachment 200393 [details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.2
Comment 6 chris fleizach 2013-05-03 08:57:26 PDT
Created attachment 200416 [details]
patch
Comment 7 chris fleizach 2013-05-03 18:14:11 PDT
Comment on attachment 200416 [details]
patch

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

> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:2301
> +        return (m_object->isChecked()) ? @"â" : nil;

this is the checkmark that the Mac returns for selected menu items
Comment 8 Tim Horton 2013-05-03 18:22:59 PDT
Comment on attachment 200416 [details]
patch

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

>> Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:2301
>> +        return (m_object->isChecked()) ? @"â" : nil;
> 
> this is the checkmark that the Mac returns for selected menu items

Can we use [NSString stringWithUTF8String:"\xe2\x9c\x93"] instead? My understanding is that using unicode in objc string literals is a Bad Idea regardless of file encoding. Alexey or Dan would know better though.
Comment 9 Alexey Proskuryakov 2013-05-04 00:11:01 PDT
IIRC this works just fine starting with Lion (as long as source file encoding is set to UTF-8 in Xcode project file).
Comment 10 chris fleizach 2013-05-04 00:21:21 PDT
Created attachment 200519 [details]
patch
Comment 11 chris fleizach 2013-05-04 00:22:11 PDT
Created attachment 200520 [details]
patch
Comment 12 WebKit Commit Bot 2013-05-05 16:24:58 PDT
Comment on attachment 200520 [details]
patch

Clearing flags on attachment: 200520

Committed r149581: <http://trac.webkit.org/changeset/149581>
Comment 13 WebKit Commit Bot 2013-05-05 16:25:01 PDT
All reviewed patches have been landed.  Closing bug.