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

Issue 1939303002: Enable accessible name of a control to include multiple <label> elements. (Closed)

Created:
4 years, 7 months ago by dmazzoni
Modified:
4 years, 6 months ago
Reviewers:
dglazkov, aboxhall
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, dmazzoni, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, eae+blinkwatch, haraken, je_julie, nektarios, nektar+watch_chromium.org, rwlbuis, sof, 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

Enable accessible name of a control to include multiple <label> elements. The spec allows a form control element to have multiple <label> elements, but we only supported one in accessibility code. Fix it by switching to using the LabelableElement interface rather than some redundant code that kept track of label elements in TreeScope, which allows us to get rid of that now-unused code. BUG=573494 Committed: https://crrev.com/054bdb4ca5858d7b65188f961a52b8b04e94078d Cr-Commit-Position: refs/heads/master@{#398005}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback from aboxhall #

Total comments: 2

Patch Set 3 : Rebase #

Patch Set 4 : Shared code with AXObject::textFromElements #

Patch Set 5 : Update expectations #

Total comments: 3

Patch Set 6 : Don't modify visited set when computing aria-labelledby #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -147 lines) Patch
M third_party/WebKit/LayoutTests/accessibility/name-calc-inputs.html View 2 chunks +17 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input.html View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt View 1 2 3 4 6 chunks +118 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrderedMap.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp View 2 chunks +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/LiveNodeList.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScope.h View 3 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScope.cpp View 3 chunks +0 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLabelElement.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLabelElement.cpp View 1 2 2 chunks +0 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 5 chunks +22 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
dmazzoni
aboxhall: primary review of modules/accessibility/ dglazkov: owners approval to delete some code in core/
4 years, 7 months ago (2016-05-02 21:20:59 UTC) #2
dglazkov
lgtm
4 years, 7 months ago (2016-05-13 18:07:47 UTC) #3
aboxhall
https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html File third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html (right): https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html#newcode82 third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html:82: <!-- Commented out? https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp File third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp (right): https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp#newcode2475 third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp:2475: ...
4 years, 7 months ago (2016-05-13 20:19:16 UTC) #4
dmazzoni
https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html File third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html (right): https://codereview.chromium.org/1939303002/diff/1/third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html#newcode82 third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html:82: <!-- On 2016/05/13 20:19:16, aboxhall wrote: > Commented out? ...
4 years, 7 months ago (2016-05-13 22:22:42 UTC) #5
dmazzoni
Sorry about the delay. Moved to ToolbarProgressBar.
4 years, 7 months ago (2016-05-13 22:25:53 UTC) #6
aboxhall
https://codereview.chromium.org/1939303002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/1939303002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode2187 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:2187: if (relatedObjects) { Now that I've had a closer ...
4 years, 7 months ago (2016-05-16 17:19:01 UTC) #7
dmazzoni
https://codereview.chromium.org/1939303002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp File third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp (right): https://codereview.chromium.org/1939303002/diff/20001/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp#newcode2187 third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp:2187: if (relatedObjects) { On 2016/05/16 17:19:01, aboxhall wrote: > ...
4 years, 6 months ago (2016-06-01 19:53:23 UTC) #8
aboxhall
https://codereview.chromium.org/1939303002/diff/80001/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt File third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt (right): https://codereview.chromium.org/1939303002/diff/80001/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt#newcode788 third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt:788: "nativeSource": "labelwrapped", Hah, this is a fun edge case ...
4 years, 6 months ago (2016-06-03 21:19:44 UTC) #9
dmazzoni
The self-reference aria-labelledby case is fixed, take a look
4 years, 6 months ago (2016-06-03 22:35:24 UTC) #10
aboxhall
lgtm
4 years, 6 months ago (2016-06-03 22:37:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939303002/100001
4 years, 6 months ago (2016-06-03 23:03:14 UTC) #14
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/233352)
4 years, 6 months ago (2016-06-04 03:22:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1939303002/100001
4 years, 6 months ago (2016-06-06 07:11:00 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-06 11:38:15 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 11:39:35 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/054bdb4ca5858d7b65188f961a52b8b04e94078d
Cr-Commit-Position: refs/heads/master@{#398005}

Powered by Google App Engine
This is Rietveld 408576698