RESOLVED FIXED166571
AX: Need to expose frames to iOS Accessibility
https://bugs.webkit.org/show_bug.cgi?id=166571
Summary AX: Need to expose frames to iOS Accessibility
chris fleizach
Reported 2016-12-29 00:06:50 PST
To support navigation by frame for VoiceOver on iOS, we need to expose the frame ancestor
Attachments
patch (1.73 KB, patch)
2016-12-29 00:11 PST, chris fleizach
no flags
patch (1.51 KB, patch)
2016-12-29 00:13 PST, chris fleizach
darin: review+
patch for landing (1.50 KB, patch)
2016-12-29 09:40 PST, chris fleizach
no flags
Radar WebKit Bug Importer
Comment 1 2016-12-29 00:08:22 PST
chris fleizach
Comment 2 2016-12-29 00:11:44 PST
chris fleizach
Comment 3 2016-12-29 00:13:26 PST
Darin Adler
Comment 4 2016-12-29 01:30:55 PST
Comment on attachment 297826 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=297826&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:592 > + if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) { > + return object.isWebArea(); > + })) > + return parent->wrapper(); > + return nil; In WebKit we normally use early exit for errors rather than wrapping success in an if. I also think auto would be good to use here. So I would write: auto* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) { return object.isWebArea(); }); if (!parent) return nil; return parent->wrapper; But I still think the auto* is an improvement even if you want ot keep it nested the way you have it.
chris fleizach
Comment 5 2016-12-29 09:23:36 PST
Thanks, will make those changes (In reply to comment #4) > Comment on attachment 297826 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=297826&action=review > > > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:592 > > + if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) { > > + return object.isWebArea(); > > + })) > > + return parent->wrapper(); > > + return nil; > > In WebKit we normally use early exit for errors rather than wrapping success > in an if. I also think auto would be good to use here. So I would write: > > auto* parent = AccessibilityObject::matchedParent(*m_object, false, [] > (const AccessibilityObject& object) { > return object.isWebArea(); > }); > if (!parent) > return nil; > return parent->wrapper; > > But I still think the auto* is an improvement even if you want ot keep it > nested the way you have it.
chris fleizach
Comment 6 2016-12-29 09:40:12 PST
Created attachment 297835 [details] patch for landing
WebKit Commit Bot
Comment 7 2016-12-29 10:47:22 PST
Comment on attachment 297835 [details] patch for landing Clearing flags on attachment: 297835 Committed r210205: <http://trac.webkit.org/changeset/210205>
WebKit Commit Bot
Comment 8 2016-12-29 10:47:25 PST
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.