DescriptionViews a11y: Obey DialogDelegate::GetAccessibleWindowRole() rather than making a dialog-within-a-dialog
Currently both views::RootView and a dialog's ContentsView() are
populating AX_ROLE_DIALOG. This sets up a weird dialog-within-a-dialog.
Also, since the ContentsView doesn't include the title and dialog
buttons, it creates a nested group that excludes the dialog buttons and
is hard to navigate with a11y tools since it hides the dialog contents
inside the group.
To fix, just rely on views::RootView to populate the window role, and
obey GetAccessibleWindowRole() when deciding whether to notify a11y
tools of the window appearance.
BUG=741285
Review-Url: https://codereview.chromium.org/2980713002
Cr-Commit-Position: refs/heads/master@{#486153}
Committed: https://chromium.googlesource.com/chromium/src/+/df3bc2070765d8e38fd47850ad0c112e128e5933
Patch Set 1 #Patch Set 2 : fix win #Patch Set 3 : Fire on RootView #Patch Set 4 : Fix test #
Total comments: 2
Messages
Total messages: 24 (19 generated)
|