Bug 180898

Summary: AX: AOM: Dispatch accessibleclick event
Product: WebKit Reporter: Nan Wang <n_wang>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: aboxhall, apinheiro, cdumez, cfleizach, cmarcelo, commit-queue, dbates, dmazzoni, esprehn+autocc, ews-watchlist, jcraig, jdiggs, kangil.han, kondapallykalyan, michaelcpuckett, n_wang, rniwa, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=179255
https://bugs.webkit.org/show_bug.cgi?id=169090
Bug Depends on:    
Bug Blocks: 179502    
Attachments:
Description Flags
patch
none
patch
ews-watchlist: commit-queue-
Archive of layout-test-results from ews106 for mac-sierra-wk2
none
Archive of layout-test-results from ews116 for mac-sierra
none
patch
rniwa: review-
patch
rniwa: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews113 for mac-sierra
none
patch for landing
none
patch for landing none

Nan Wang
Reported 2017-12-15 18:02:10 PST
Phase 2 of AOM: Add support for custom ax events. And implement onaccessibleclick
Attachments
patch (18.13 KB, patch)
2017-12-15 18:14 PST, Nan Wang
no flags
patch (15.97 KB, patch)
2018-02-14 12:30 PST, Nan Wang
ews-watchlist: commit-queue-
Archive of layout-test-results from ews106 for mac-sierra-wk2 (3.32 MB, application/zip)
2018-02-14 14:06 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews116 for mac-sierra (2.91 MB, application/zip)
2018-02-14 14:07 PST, EWS Watchlist
no flags
patch (16.56 KB, patch)
2018-02-14 14:11 PST, Nan Wang
rniwa: review-
patch (18.47 KB, patch)
2018-02-19 18:23 PST, Nan Wang
rniwa: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews113 for mac-sierra (3.13 MB, application/zip)
2018-02-19 19:41 PST, EWS Watchlist
no flags
patch for landing (18.60 KB, patch)
2018-02-20 10:11 PST, Nan Wang
no flags
patch for landing (18.60 KB, patch)
2018-02-20 10:17 PST, Nan Wang
no flags
Radar WebKit Bug Importer
Comment 1 2017-12-15 18:02:44 PST
Nan Wang
Comment 2 2017-12-15 18:14:58 PST
chris fleizach
Comment 3 2017-12-18 18:16:31 PST
Comment on attachment 329552 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=329552&action=review > Source/WebCore/accessibility/AccessibilityObject.cpp:2247 > + for (size_t i = 1; i < eventPath.size(); ++i) { should take eventPath.size() out of the loop
Nan Wang
Comment 4 2018-02-14 12:30:11 PST
EWS Watchlist
Comment 5 2018-02-14 14:06:43 PST
Comment on attachment 333830 [details] patch Attachment 333830 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/6505405 New failing tests: js/dom/dom-static-property-for-in-iteration.html
EWS Watchlist
Comment 6 2018-02-14 14:06:45 PST
Created attachment 333837 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 7 2018-02-14 14:07:14 PST
Comment on attachment 333830 [details] patch Attachment 333830 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/6505138 New failing tests: js/dom/dom-static-property-for-in-iteration.html
EWS Watchlist
Comment 8 2018-02-14 14:07:16 PST
Created attachment 333838 [details] Archive of layout-test-results from ews116 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-sierra Platform: Mac OS X 10.12.6
Nan Wang
Comment 9 2018-02-14 14:11:40 PST
Created attachment 333841 [details] patch fixed test
chris fleizach
Comment 10 2018-02-14 15:36:45 PST
Comment on attachment 333830 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=333830&action=review > Source/WebCore/accessibility/AccessibilityObject.cpp:2166 > + for (auto* parentObject = this; parentObject; parentObject = parentObject->parentObject()) { should we follow the Element->parentNode() hierarchy here instead of ax object hierarchy?
Nan Wang
Comment 11 2018-02-14 15:59:05 PST
Comment on attachment 333830 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=333830&action=review >> Source/WebCore/accessibility/AccessibilityObject.cpp:2166 >> + for (auto* parentObject = this; parentObject; parentObject = parentObject->parentObject()) { > > should we follow the Element->parentNode() hierarchy here instead of ax object hierarchy? This is specified in the previous spec, and I think this would keep the same: Accessibility input events go through capture and bubble phases, just like DOM events. The only difference is that the capture and bubble phases happen entirely in the accessibility tree.
Ryosuke Niwa
Comment 12 2018-02-16 20:15:28 PST
Comment on attachment 333841 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=333841&action=review > Source/WebCore/ChangeLog:14 > + Need a URL for the spec. > Source/WebCore/accessibility/AccessibilityObject.cpp:2163 > +bool AccessibilityObject::dispatchAccessibilityEvent(Event& event) I don't think we want to duplicate all this code here. We should templatize the one in EventDispatcher.cpp and re-use it for regular DOM events and accessibility tree instead. r- due to this code duplication. > Source/WebCore/accessibility/AccessibilityObject.cpp:2166 > + for (auto* parentObject = this; parentObject; parentObject = parentObject->parentObject()) { Where this event path specified? Are we sure we want to use the accessibility tree to dispatch events?
Nan Wang
Comment 13 2018-02-19 18:23:15 PST
Comment on attachment 333841 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=333841&action=review >> Source/WebCore/accessibility/AccessibilityObject.cpp:2166 >> + for (auto* parentObject = this; parentObject; parentObject = parentObject->parentObject()) { > > Where this event path specified? > Are we sure we want to use the accessibility tree to dispatch events? It's specified here: https://wicg.github.io/aom/spec/phase2.html
Nan Wang
Comment 14 2018-02-19 18:23:38 PST
Created attachment 334221 [details] patch update from review
Ryosuke Niwa
Comment 15 2018-02-19 19:15:51 PST
Comment on attachment 334221 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=334221&action=review > Source/WebCore/accessibility/AccessibilityObject.cpp:999 > + Ref<Event> event = Event::create(eventNames().accessibleclickEvent, true, true); Use auto. > Source/WebCore/accessibility/AccessibilityObject.cpp:2164 > + EventDispatcher::dispatchEvent(eventPath, event); The definition of the event dispatching isn't detailed enough in the current spec... Filed https://github.com/WICG/aom/issues/103.
EWS Watchlist
Comment 16 2018-02-19 19:41:47 PST
Comment on attachment 334221 [details] patch Attachment 334221 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/6582409 New failing tests: media/media-controls-accessibility.html
EWS Watchlist
Comment 17 2018-02-19 19:41:49 PST
Created attachment 334229 [details] Archive of layout-test-results from ews113 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-sierra Platform: Mac OS X 10.12.6
Nan Wang
Comment 18 2018-02-20 10:11:58 PST
Created attachment 334282 [details] patch for landing fixed the test
EWS Watchlist
Comment 19 2018-02-20 10:14:37 PST
Attachment 334282 [details] did not pass style-queue: ERROR: Source/WebCore/dom/EventPath.cpp:277: Declaration has space between type name and * in Node *origin [whitespace/declaration] [3] Total errors found: 1 in 19 files If any of these errors are false positives, please file a bug against check-webkit-style.
Nan Wang
Comment 20 2018-02-20 10:17:59 PST
Created attachment 334284 [details] patch for landing fixed style
WebKit Commit Bot
Comment 21 2018-02-20 11:02:30 PST
Comment on attachment 334284 [details] patch for landing Clearing flags on attachment: 334284 Committed r228827: <https://trac.webkit.org/changeset/228827>
James Craig
Comment 22 2022-12-12 15:52:14 PST
These features are no longer in the specs. Closing out this bug.
Note You need to log in before you can comment on or make changes to this bug.