Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Issue 1841333002: Various fixes for aria-activedescendant. (Closed)

Created:
4 years, 8 months ago by nektarios
Modified:
4 years, 8 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, aboxhall, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, nektarios, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, blink-reviews, dmazzoni
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Various fixes for aria-activedescendant. 1. Elements with an ARIA role and an ancestor that exposes an active descendant should be marked focusable according to the ARIA Spec. 2. Elements that are the target of an active descendant should be marked focused if the element that exposes the active descendant attribute is also focused. 3. If an active descendant is removed an event should fire. 4. According to the ARIA Spec, composite widgets, text boxes and ARIA groups should be permitted to expose an active descendant. We were not permitting text boxes to do that whilst we were permitting other widgets that should not have been, such as outlines. 5. ARIA list box options should be marked selectable in the accessibility API if they have an ancestor that exposes an aria-activedescendant attribute. 6. ARIA list box options that are focused via aria-activedescendant should also be marked as selected. 7. Focus and blur events should not fire from Bllink when the active descendant changes or when it is removed. Only an active descendant changed event should fire. The browser should handle any platform specific focus changed events and not Blink. BUG=593646 R=dmazzoni@chromium.org TESTED=layout test, manually with Jaws and NVDA Committed: https://crrev.com/1c568219380053695ef94b4372c4911df9c05c99 Cr-Commit-Position: refs/heads/master@{#386489}

Patch Set 1 #

Patch Set 2 : Added selectable and selected states to ARIA list box options. #

Total comments: 6

Patch Set 3 : Addressed comments and added a test for events. #

Patch Set 4 : Modified test. #

Patch Set 5 : Updated tests. Stopped firing a focus changed event when the active descendant changes. #

Total comments: 2

Patch Set 6 : Addressed latest comments. #

Total comments: 1

Patch Set 7 : Added proper momoization. #

Patch Set 8 : Rebased with master. #

Patch Set 9 : Skipped tests until browser side code is implementated. #

Patch Set 10 : Fixed some Blink tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -135 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/data/accessibility/event/listbox-focus.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/listbox-focus-expected-mac.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/test/data/accessibility/event/listbox-focus-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/test/data/accessibility/event/listbox-next-expected-mac.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/test/data/accessibility/event/listbox-next-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/accessibility/aria-activedescendant.html View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/accessibility/aria-activedescendant-events.html View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/contenteditable-caret-position.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/calendar-picker/date-picker-ax-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/calendar-picker/month-picker-ax.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/calendar-picker/month-picker-ax-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/calendar-picker/week-picker-ax.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/calendar-picker/week-picker-ax-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 7 8 chunks +26 lines, -87 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXListBox.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 6 7 3 chunks +33 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 7 5 chunks +50 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp View 1 2 3 4 5 6 7 3 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 48 (18 generated)
nektarios
4 years, 8 months ago (2016-03-30 02:48:45 UTC) #1
dmazzoni
It might be good to split this into more than one change.
4 years, 8 months ago (2016-03-30 19:04:20 UTC) #4
blink-reviews
On 3/30/2016 3:04 PM, dmazzoni@chromium.org wrote: > It might be good to split this into ...
4 years, 8 months ago (2016-03-30 19:51:07 UTC) #5
chromium-reviews
On 3/30/2016 3:04 PM, dmazzoni@chromium.org wrote: > It might be good to split this into ...
4 years, 8 months ago (2016-03-30 19:51:07 UTC) #6
dmazzoni
https://codereview.chromium.org/1841333002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/1841333002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode449 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:449: bool AXLayoutObject::isFocused() const We don't actually call isFocused from ...
4 years, 8 months ago (2016-03-31 05:48:30 UTC) #7
chromium-reviews
Addressed comments. Yes, we do fire the focus changed event on the new active descendant ...
4 years, 8 months ago (2016-03-31 21:35:40 UTC) #8
blink-reviews
Addressed comments. Yes, we do fire the focus changed event on the new active descendant ...
4 years, 8 months ago (2016-03-31 21:35:40 UTC) #9
dmazzoni
The active descendant notifications are working fine, the reason your test isn't working is because ...
4 years, 8 months ago (2016-04-01 07:18:39 UTC) #10
blink-reviews
Okay, I fixed the test by only hiding the containers when the test is successful. ...
4 years, 8 months ago (2016-04-01 16:29:40 UTC) #11
chromium-reviews
Okay, I fixed the test by only hiding the containers when the test is successful. ...
4 years, 8 months ago (2016-04-01 16:29:40 UTC) #12
dmazzoni
Thanks for your patience. Really close, I have just two more requests. https://codereview.chromium.org/1841333002/diff/80001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp ...
4 years, 8 months ago (2016-04-05 05:37:22 UTC) #14
blink-reviews
All comments addressed. -- You received this message because you are subscribed to the Google ...
4 years, 8 months ago (2016-04-06 00:01:53 UTC) #15
chromium-reviews
All comments addressed. -- You received this message because you are subscribed to the Google ...
4 years, 8 months ago (2016-04-06 00:01:53 UTC) #16
dmazzoni
https://codereview.chromium.org/1841333002/diff/100001/third_party/WebKit/Source/modules/accessibility/AXObject.cpp File third_party/WebKit/Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/1841333002/diff/100001/third_party/WebKit/Source/modules/accessibility/AXObject.cpp#newcode690 third_party/WebKit/Source/modules/accessibility/AXObject.cpp:690: for (const AXObject* object = this; object; object = ...
4 years, 8 months ago (2016-04-06 15:51:12 UTC) #17
blink-reviews
Done. -- You received this message because you are subscribed to the Google Groups "Blink ...
4 years, 8 months ago (2016-04-06 18:12:22 UTC) #18
chromium-reviews
Done. -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" ...
4 years, 8 months ago (2016-04-06 18:12:23 UTC) #19
dmazzoni
lgtm
4 years, 8 months ago (2016-04-07 04:27:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/120001
4 years, 8 months ago (2016-04-07 04:28:00 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/15373) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-07 04:30:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/140001
4 years, 8 months ago (2016-04-07 20:47:15 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/194333)
4 years, 8 months ago (2016-04-07 21:29:16 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/160001
4 years, 8 months ago (2016-04-07 23:43:48 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/201744)
4 years, 8 months ago (2016-04-08 01:03:04 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/180001
4 years, 8 months ago (2016-04-09 01:05:31 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/202466)
4 years, 8 months ago (2016-04-09 04:50:38 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/180001
4 years, 8 months ago (2016-04-11 19:59:56 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-11 21:48:07 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841333002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841333002/180001
4 years, 8 months ago (2016-04-11 21:54:14 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-11 22:07:18 UTC) #46
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:09:29 UTC) #48
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1c568219380053695ef94b4372c4911df9c05c99
Cr-Commit-Position: refs/heads/master@{#386489}

Powered by Google App Engine
This is Rietveld 408576698