RESOLVED FIXED 162041
AX: Add accessibility support for details element on iOS
https://bugs.webkit.org/show_bug.cgi?id=162041
Summary AX: Add accessibility support for details element on iOS
Nan Wang
Reported 2016-09-15 16:03:41 PDT
The details/summary elements are poorly supported on iOS. Issues: 1. There's no expanded/collapsed status announced from VoiceOver. 2. Impossible to navigate through them using VoiceOver. VO cursor is jumping randomly. <rdar://problem/27914836>
Attachments
patch (10.18 KB, patch)
2016-09-15 16:23 PDT, Nan Wang
no flags
patch (17.50 KB, patch)
2016-09-15 18:52 PDT, Nan Wang
no flags
patch (17.49 KB, patch)
2016-09-15 20:29 PDT, Nan Wang
no flags
patch (17.08 KB, patch)
2016-09-19 10:58 PDT, Nan Wang
no flags
Nan Wang
Comment 1 2016-09-15 16:23:13 PDT
chris fleizach
Comment 2 2016-09-15 17:34:30 PDT
Comment on attachment 289013 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=289013&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1840 > + for (AccessibilityObject* parent = object; parent; parent = parent->parentObject()) { can we make a function that takes a lambda for running up the parent chain and returning a match object? and then replace all such places with that ? > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1871 > + // webkit.org/b/162041 Taking focus onto elements inside a details node will cause VO focusing onto random items. why is this the case? should we put this check inside canSetFocusAttribute() instead
Nan Wang
Comment 3 2016-09-15 17:40:07 PDT
Comment on attachment 289013 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=289013&action=review Thanks, will address other issues. >> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1871 >> + // webkit.org/b/162041 Taking focus onto elements inside a details node will cause VO focusing onto random items. > > why is this the case? > should we put this check inside canSetFocusAttribute() instead There must be something special with the details element that I haven't had chance to dig into. I think on iOS it's ok to not set focus inside details element when VO tries to focus on it.
Nan Wang
Comment 4 2016-09-15 17:42:30 PDT
Comment on attachment 289013 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=289013&action=review >>> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1871 >>> + // webkit.org/b/162041 Taking focus onto elements inside a details node will cause VO focusing onto random items. >> >> why is this the case? >> should we put this check inside canSetFocusAttribute() instead > > There must be something special with the details element that I haven't had chance to dig into. I think on iOS it's ok to not set focus inside details element when VO tries to focus on it. I put it here because this will only affect iOS.
chris fleizach
Comment 5 2016-09-15 17:54:02 PDT
Comment on attachment 289013 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=289013&action=review >>>> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1871 >>>> + // webkit.org/b/162041 Taking focus onto elements inside a details node will cause VO focusing onto random items. >>> >>> why is this the case? >>> should we put this check inside canSetFocusAttribute() instead >> >> There must be something special with the details element that I haven't had chance to dig into. I think on iOS it's ok to not set focus inside details element when VO tries to focus on it. > > I put it here because this will only affect iOS. ok seems reasonable
Nan Wang
Comment 6 2016-09-15 18:52:46 PDT
Created attachment 289027 [details] patch - updated function to take a lambda to search for matched parent object.
Nan Wang
Comment 7 2016-09-15 19:40:15 PDT
Will look into the patch build issue
Nan Wang
Comment 8 2016-09-15 20:29:21 PDT
Created attachment 289029 [details] patch Fixed the patch
Nan Wang
Comment 9 2016-09-19 10:58:07 PDT
Created attachment 289241 [details] patch Updated style for matchFunc
WebKit Commit Bot
Comment 10 2016-09-19 11:34:33 PDT
Comment on attachment 289241 [details] patch Clearing flags on attachment: 289241 Committed r206102: <http://trac.webkit.org/changeset/206102>
WebKit Commit Bot
Comment 11 2016-09-19 11:34:38 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.