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

Issue 1899823002: Uses the activedescendant_changed event received from Blink to fire the right focus event (Closed)

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

Description

Uses the activedescendant_changed event received from Blink to fire the right focus event on the browser side. 1. Changed all <select> based widgets (list box role and menu list popup role) to fire activedescendant_changed events when the current selection changes. This behavior is the same as with ARIA combo boxes and other ARIA-based widgets that can have an active descendant. This means that we now have a uniform way of notifying the browser when the active child of a widget has changed. 2. Modified platform-specific code to fire the focus events on the active descendant when it changes, instead of relying on Blink. 3. Fires a focus event on the whole list or combo box when it collapses to make Windows screen readers enable their virtual cursor again. BUG=593646 R=dmazzoni@chromium.org TESTED=Jaws NVDA and VoiceOver, browser tests Committed: https://crrev.com/2c4ec4bed7e28e4f45efe742833dd3a154ac266b Cr-Commit-Position: refs/heads/master@{#396653}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test expectations. #

Total comments: 1

Patch Set 3 : Removed extraneous focus events. #

Total comments: 6

Patch Set 4 : Moved focus handling to |FireFocusEventsWhenNeeded| #

Patch Set 5 : Fixed Mac compilation issue. #

Total comments: 3

Patch Set 6 : Doesn't move focus out of editable combo boxes on the Mac. #

Patch Set 7 : Rebased with master. #

Patch Set 8 : Fixed crashing bug. #

Patch Set 9 : Fixed menu list boxes. #

Patch Set 10 : Fixed Mac tests. #

Patch Set 11 : Added missing expectations file on the Mac. #

Patch Set 12 : Disabled Mac test that crashes. #

Patch Set 13 : Disabled another Mac test that was crashing. #

Patch Set 14 : Fixed WebKit tests. #

Patch Set 15 : Fixed menu-list-open Layout test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -103 lines) Patch
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -17 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -19 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +47 lines, -2 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-collapse.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-collapse-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-collapse-expected-win.txt View 1 1 chunk +3 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-expand.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-expand-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-expand-expected-win.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-focus.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-focus-expected-mac.txt View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-focus-expected-win.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-next.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-next-expected-mac.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/event/aria-combo-box-next-expected-win.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/data/accessibility/event/listbox-focus.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/listbox-focus-expected-mac.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/test/data/accessibility/event/listbox-focus-expected-win.txt View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/event/listbox-next-expected-mac.txt View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M content/test/data/accessibility/event/listbox-next-expected-win.txt View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
A content/test/data/accessibility/event/menulist-collapse.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/menulist-collapse-expected-mac.txt View 1 2 3 4 5 10 0 chunks +-1 lines, --1 lines 0 comments Download
A content/test/data/accessibility/event/menulist-collapse-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/event/menulist-expand.html View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A content/test/data/accessibility/event/menulist-expand-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/event/menulist-expand-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/data/accessibility/event/menulist-focus.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/menulist-focus-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/menulist-focus-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/menulist-next.html View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M content/test/data/accessibility/event/menulist-next-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/menulist-next-expected-win.txt View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/listbox-focus.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/menu-list-open.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/multiselect-list-reports-active-option-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXListBox.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXListBox.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMenuListPopup.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXMenuListPopup.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 66 (32 generated)
nektarios
4 years, 8 months ago (2016-04-18 17:38:47 UTC) #1
dmazzoni
I'd love to see some tests for this in content/test/data/accessibility/event/ https://codereview.chromium.org/1899823002/diff/1/content/browser/accessibility/browser_accessibility_manager.cc File content/browser/accessibility/browser_accessibility_manager.cc (right): https://codereview.chromium.org/1899823002/diff/1/content/browser/accessibility/browser_accessibility_manager.cc#newcode455 ...
4 years, 8 months ago (2016-04-18 18:27:04 UTC) #2
chromium-reviews
I am testing on the Mac, but you can review my additional event tests in ...
4 years, 8 months ago (2016-04-19 17:39:37 UTC) #3
dmazzoni
I think you forgot to upload again? On Tue, Apr 19, 2016 at 10:39 AM ...
4 years, 8 months ago (2016-04-19 18:23:52 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/20001
4 years, 8 months ago (2016-04-20 18:56:54 UTC) #6
chromium-reviews
On 4/19/2016 2:23 PM, Dominic Mazzoni wrote: > I think you forgot to upload again? ...
4 years, 8 months ago (2016-04-20 19:05:34 UTC) #8
commit-bot: I haz the power
Dry run: 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/200864)
4 years, 8 months ago (2016-04-20 20:09:01 UTC) #10
dmazzoni
https://codereview.chromium.org/1899823002/diff/20001/content/test/data/accessibility/event/aria-combo-box-collapse-expected-mac.txt File content/test/data/accessibility/event/aria-combo-box-collapse-expected-mac.txt (right): https://codereview.chromium.org/1899823002/diff/20001/content/test/data/accessibility/event/aria-combo-box-collapse-expected-mac.txt#newcode2 content/test/data/accessibility/event/aria-combo-box-collapse-expected-mac.txt:2: AXFocusedUIElementChanged on AXList Do you know why we're getting ...
4 years, 8 months ago (2016-04-21 16:20:08 UTC) #11
chromium-reviews
I fixed the multiple focus events. |FireFocusEventsWhenNeeded| was being called before the loop that processes ...
4 years, 8 months ago (2016-04-26 16:40:39 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/40001
4 years, 8 months ago (2016-04-26 16:41:25 UTC) #14
commit-bot: I haz the power
Dry run: 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/211597)
4 years, 8 months ago (2016-04-26 17:53:16 UTC) #17
dmazzoni
the blink changes look good, but more comments about the Chrome changes https://codereview.chromium.org/1899823002/diff/40001/content/browser/accessibility/browser_accessibility_manager_mac.mm File content/browser/accessibility/browser_accessibility_manager_mac.mm ...
4 years, 8 months ago (2016-04-26 20:24:25 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/60001
4 years, 7 months ago (2016-04-29 15:06:16 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/196287)
4 years, 7 months ago (2016-04-29 15:20:49 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/80001
4 years, 7 months ago (2016-04-29 15:42:05 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/219933)
4 years, 7 months ago (2016-04-29 17:15:35 UTC) #27
dmazzoni
lgtm once all tests pass https://codereview.chromium.org/1899823002/diff/80001/content/browser/accessibility/browser_accessibility_manager_mac.mm File content/browser/accessibility/browser_accessibility_manager_mac.mm (right): https://codereview.chromium.org/1899823002/diff/80001/content/browser/accessibility/browser_accessibility_manager_mac.mm#newcode135 content/browser/accessibility/browser_accessibility_manager_mac.mm:135: // For combo boxes, ...
4 years, 7 months ago (2016-04-29 20:55:54 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/100001
4 years, 7 months ago (2016-05-24 16:42:22 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/116345)
4 years, 7 months ago (2016-05-24 17:11:38 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/160001
4 years, 7 months ago (2016-05-26 21:37:39 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/118087)
4 years, 7 months ago (2016-05-26 22:34:07 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/180001
4 years, 7 months ago (2016-05-27 00:14:37 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/220001
4 years, 6 months ago (2016-05-27 15:20:21 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/118501)
4 years, 6 months ago (2016-05-27 16:07:52 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/240001
4 years, 6 months ago (2016-05-27 16:45:04 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/236923)
4 years, 6 months ago (2016-05-27 18:04:08 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/260001
4 years, 6 months ago (2016-05-27 18:55:32 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/235314)
4 years, 6 months ago (2016-05-27 20:43:47 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/260001
4 years, 6 months ago (2016-05-28 22:15:07 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899823002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899823002/280001
4 years, 6 months ago (2016-05-28 23:35:03 UTC) #61
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 6 months ago (2016-05-29 01:26:40 UTC) #62
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/2c4ec4bed7e28e4f45efe742833dd3a154ac266b Cr-Commit-Position: refs/heads/master@{#396653}
4 years, 6 months ago (2016-05-29 01:28:18 UTC) #64
Guido Urdaneta
A revert of this CL (patchset #15 id:280001) has been created in https://codereview.chromium.org/2024053003/ by guidou@chromium.org. ...
4 years, 6 months ago (2016-05-31 13:22:14 UTC) #65
chromium-reviews
4 years, 6 months ago (2016-05-31 15:19:53 UTC) #66
Message was sent while issue was closed.
Better to only disable the test.

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698