Bug 121335

Summary: AX: elements with explicit tabindex should expose AXFocused as writable, since mouse clicks can focus it
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: chris fleizach <cfleizach>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, jdiggs, mario, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch none

Description James Craig 2013-09-13 17:39:57 PDT
AX: despite it being removed from the tab order, elements with tabindex="-1" should have their AXFocused state expose as writable (W), since mouse clicks can focus the element.

Test case:
https://dvcs.w3.org/hg/pfwg/raw-file/default/ARIA-UAIG/1.0/tests/test-files/test2.html
Comment 1 Radar WebKit Bug Importer 2013-09-13 17:40:09 PDT
<rdar://problem/14990949>
Comment 2 James Craig 2013-09-13 17:41:43 PDT
In other words, keyboard tab nav would not cause it to be focused, but the VoiceOver cursor landing on this element would cause focus to be set if VOU pref set focus to follow VO.
Comment 3 James Craig 2013-09-13 17:49:19 PDT
This also needs to work for tabindex="0" and tabindex="1", "2", n…

https://dvcs.w3.org/hg/pfwg/raw-file/default/ARIA-UAIG/1.0/tests/test-files/test3.html
Comment 4 James Craig 2013-09-13 18:00:45 PDT
Blocks UAIG test cases 5, 6, and 9
Comment 5 chris fleizach 2013-10-28 16:55:44 PDT
Created attachment 215348 [details]
patch
Comment 6 Mario Sanchez Prada 2013-10-29 03:01:09 PDT
Comment on attachment 215348 [details]
patch

We'll maybe need some tuning for the GTK/EFL ports but I'm happy with getting this in now and checking later if it's needed or not
Comment 7 WebKit Commit Bot 2013-10-29 09:38:25 PDT
Comment on attachment 215348 [details]
patch

Clearing flags on attachment: 215348

Committed r158195: <http://trac.webkit.org/changeset/158195>
Comment 8 WebKit Commit Bot 2013-10-29 09:38:28 PDT
All reviewed patches have been landed.  Closing bug.