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

Issue 1809573003: Fix support for accessible action verbs and performing the default action. (Closed)

Created:
4 years, 9 months ago by dmazzoni
Modified:
4 years, 9 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, 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

Fix support for accessible action verbs and performing the default action. Accessible objects support a "default action" if something happens when you click on them. On some platforms we return a localized string like "press" or "uncheck" indicating what action will occur. This change fixes a few cases that weren't correct: 1. A few objects had actions but no verb - fix this by adding a verb for pop-up buttons ("open") and a default verb when nothing else applies ("click"). 2. Ensure we always return an action verb when an object has a default action, and never otherwise. 3. Fix detection of click event listeners - we were using an API that only returned some; use the right API to get all click-and-mouse-related event listeners, but exclude the HTML BODY element because lots of pages have click listeners there and they're rarely what we want. 4. The Windows API accDoDefaultAction should return an error if called on an object with no default action. BUG=595222 Committed: https://crrev.com/30fc95f3dd93562d7be852205c49bd49e793d84c Cr-Commit-Position: refs/heads/master@{#381911}

Patch Set 1 #

Patch Set 2 : Fix two tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -54 lines) Patch
M content/app/strings/content_strings.grd View 3 chunks +9 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/blink_platform_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/action-verbs.html View 1 chunk +22 lines, -0 lines 0 comments Download
A content/test/data/accessibility/html/action-verbs-expected-blink.txt View 1 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types.html View 1 2 chunks +15 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/press-works-on-control-types-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 chunk +0 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/public/platform/WebLocalizedString.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
dmazzoni
jochen: OWNERS review for third_party/WebKit/public and content/ nektar: primary review
4 years, 9 months ago (2016-03-16 16:43:29 UTC) #2
nektarios
lgtm
4 years, 9 months ago (2016-03-16 17:44:47 UTC) #3
nektarios
Shouldn't popupButtonRole also have the action of "press"?
4 years, 9 months ago (2016-03-16 17:45:22 UTC) #4
dmazzoni
On 2016/03/16 17:45:22, nektarios wrote: > Shouldn't popupButtonRole also have the action of "press"? I ...
4 years, 9 months ago (2016-03-16 17:49:42 UTC) #5
blink-reviews
So, both popupButtonRole and popupButtonMenuList have the same action? -- You received this message because ...
4 years, 9 months ago (2016-03-16 17:57:14 UTC) #6
chromium-reviews
So, both popupButtonRole and popupButtonMenuList have the same action? -- You received this message because ...
4 years, 9 months ago (2016-03-16 17:57:14 UTC) #7
dmazzoni
menuListPopupRole was a mistake. It's not a control, it's the role for the container that ...
4 years, 9 months ago (2016-03-16 18:48:30 UTC) #8
dmazzoni
menuListPopupRole was a mistake. It's not a control, it's the role for the container that ...
4 years, 9 months ago (2016-03-16 18:48:31 UTC) #9
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-17 19:59:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809573003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809573003/20001
4 years, 9 months ago (2016-03-18 06:15:06 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-18 08:28:50 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 08:30:15 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/30fc95f3dd93562d7be852205c49bd49e793d84c
Cr-Commit-Position: refs/heads/master@{#381911}

Powered by Google App Engine
This is Rietveld 408576698