RESOLVED FIXED 160388
AX: Add a check for touch event listener on iOS accessibility object
https://bugs.webkit.org/show_bug.cgi?id=160388
Summary AX: Add a check for touch event listener on iOS accessibility object
Nan Wang
Reported 2016-07-31 02:28:34 PDT
Expose the check on the wrapper object so that we can handle simulating the touch on iOS.
Attachments
patch (9.41 KB, patch)
2016-07-31 02:47 PDT, Nan Wang
no flags
patch (9.39 KB, patch)
2016-07-31 11:33 PDT, Nan Wang
no flags
patch (9.34 KB, patch)
2016-07-31 11:40 PDT, Nan Wang
no flags
Radar WebKit Bug Importer
Comment 1 2016-07-31 02:28:45 PDT
Nan Wang
Comment 2 2016-07-31 02:47:33 PDT
chris fleizach
Comment 3 2016-07-31 11:01:05 PDT
Comment on attachment 284963 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=284963&action=review > Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm:89 > + return false; Will this also take care of the case where the listener is on a parent node?
Nan Wang
Comment 4 2016-07-31 11:33:25 PDT
Created attachment 284966 [details] patch update from review
Nan Wang
Comment 5 2016-07-31 11:40:37 PDT
Created attachment 284967 [details] patch better styling
chris fleizach
Comment 6 2016-07-31 12:01:06 PDT
Comment on attachment 284967 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=284967&action=review > Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm:88 > + if (node->hasEventListeners(eventNames().touchstartEvent) || node->hasEventListeners(eventNames().touchendEvent)) We may have code for this already. Can you do a search for ontouchstart and see if there's something in ax alread
Nan Wang
Comment 7 2016-07-31 12:29:07 PDT
Comment on attachment 284967 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=284967&action=review >> Source/WebCore/accessibility/ios/AccessibilityObjectIOS.mm:88 >> + if (node->hasEventListeners(eventNames().touchstartEvent) || node->hasEventListeners(eventNames().touchendEvent)) > > We may have code for this already. Can you do a search for ontouchstart and see if there's something in ax alread I searched ontouchstart, ontouchend, touchstart and touchend. And there's no related accessibility code.
WebKit Commit Bot
Comment 8 2016-07-31 13:04:12 PDT
Comment on attachment 284967 [details] patch Clearing flags on attachment: 284967 Committed r203955: <http://trac.webkit.org/changeset/203955>
WebKit Commit Bot
Comment 9 2016-07-31 13:04:16 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.