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

Issue 2387533003: Accessibility: Ignore all anonymous blocks (Closed)

Created:
4 years, 2 months ago by dmazzoni
Modified:
4 years, 2 months ago
Reviewers:
aboxhall
CC:
chromium-reviews, aboxhall, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, haraken, nektarios, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, blink-reviews, dmazzoni
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Accessibility: Ignore all anonymous blocks Anonymous blocks are an implementation detail of the Blink layout tree. They're surprising and not useful in the accessibility tree. Get rid of them by marking them all as ignored. While it may seem counterintuitive, this is actually part of a longer-term plan to get rid of the idea of ignoring nodes for accessibility, this will bring us closer to just exposing the DOM tree plus generated content, like FIrefox and IE do. The code change here is tiny, most of the change is rebasing or updating dozens and dozens of affected tests. I deleted a couple of tests that specifically tested corner cases involving anonymous blocks; the whole point of this change is to not make this a special case anymore. Also updates this script, designed to automatically pull test output from try servers to a local change: tools/accessibility/rebase_dump_accessibility_tree_test.py BUG=651614 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9cbd8a4019e2d4799e85d96741418d79ea046e71 Cr-Commit-Position: refs/heads/master@{#426138}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Trying to improve parsing of test output logs on Windows #

Patch Set 4 : Replace literal newlines with \n in test output #

Patch Set 5 : Update test expectations #

Patch Set 6 : Rebase #

Patch Set 7 : Fixed parsing Android test output #

Patch Set 8 : Fix a lot of tests #

Patch Set 9 : Fix more expectations and Android tests #

Patch Set 10 : Fix more tests, replace \n with <newline> #

Patch Set 11 : Revert whitespace-only changes #

Patch Set 12 : Fix newlines #

Patch Set 13 : Fix one more test expectation #

Patch Set 14 : Rebase #

Patch Set 15 : Update some Android test results #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -491 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_util_test.extjs View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors_test.extjs View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/find.js View 1 2 3 4 5 6 7 4 chunks +2 lines, -19 lines 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/location.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/automation/tests/tabs/queryselector.js View 1 2 3 4 5 6 7 3 chunks +2 lines, -14 lines 0 comments Download
M content/browser/accessibility/accessibility_ipc_error_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/accessibility/accessibility_tree_formatter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/accessibility/android_granularity_movement_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -71 lines 0 comments Download
M content/test/data/accessibility/aria/aria-current-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -9 lines 0 comments Download
M content/test/data/accessibility/aria/aria-describedby-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-describedby-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-describedby-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-labelledby-heading-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-owns-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/aria/aria-posinset-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -16 lines 0 comments Download
M content/test/data/accessibility/aria/aria-posinset-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -18 lines 0 comments Download
M content/test/data/accessibility/aria/aria-posinset-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -18 lines 0 comments Download
M content/test/data/accessibility/aria/aria-separator-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/aria/aria-separator-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-rich-text-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -5 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-rich-text-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -5 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
D content/test/data/accessibility/aria/aria-textbox-with-selection-expected-win.txt View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
M content/test/data/accessibility/aria/aria-tooltip-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-tooltip-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-tooltip-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/a-expected-auralinux.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/a-name-calc-expected-android.txt View 1 2 3 4 5 6 10 11 12 13 1 chunk +7 lines, -8 lines 0 comments Download
M content/test/data/accessibility/html/action-verbs-expected-blink.txt View 1 2 3 1 chunk +12 lines, -14 lines 0 comments Download
M content/test/data/accessibility/html/button-name-calc-expected-android.txt View 1 2 3 4 5 6 10 11 12 13 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/button-name-calc-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/button-name-calc-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/checkbox-name-calc-expected-android.txt View 1 2 3 4 5 6 10 11 12 13 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/checkbox-name-calc-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/checkbox-name-calc-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/cite-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/cite-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/cite-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-embedded-contenteditables-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -10 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-embedded-contenteditables-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -8 lines 0 comments Download
M content/test/data/accessibility/html/element-class-id-src-attr-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/element-class-id-src-attr-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/element-class-id-src-attr-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/figcaption-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/figcaption-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/figcaption-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/iframe-cross-process-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-button-in-menu-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/input-radio-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/input-radio-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/input-radio-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -6 lines 0 comments Download
M content/test/data/accessibility/html/input-text-name-calc-expected-android.txt View 1 2 3 4 5 6 10 11 12 13 1 chunk +7 lines, -8 lines 0 comments Download
M content/test/data/accessibility/html/input-text-name-calc-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -8 lines 0 comments Download
M content/test/data/accessibility/html/legend-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/legend-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/legend-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/modal-dialog-closed-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/modal-dialog-closed-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/p-expected-blink.txt View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/p-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/p-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/ruby-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/ruby-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-read-only-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-read-only-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-with-selection-expected-mac.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/test/data/accessibility/html/textarea-with-selection-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/element-role-mapping-normal-expected.txt View 1 2 3 4 5 6 7 3 chunks +19 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/accessibility/rebase_dump_accessibility_tree_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +75 lines, -43 lines 0 comments Download

Messages

Total messages: 79 (69 generated)
dmazzoni
Ready for review!
4 years, 2 months ago (2016-10-17 22:59:43 UTC) #66
aboxhall
lgtm
4 years, 2 months ago (2016-10-18 20:52:59 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2387533003/280001
4 years, 2 months ago (2016-10-18 22:10:52 UTC) #69
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/50824)
4 years, 2 months ago (2016-10-19 00:15:20 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2387533003/280001
4 years, 2 months ago (2016-10-19 04:51:28 UTC) #73
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 2 months ago (2016-10-19 09:58:31 UTC) #74
David Tseng
On 2016/10/17 22:59:43, dmazzoni wrote: > Ready for review! This is the cause of the ...
4 years, 2 months ago (2016-10-20 22:35:25 UTC) #75
David Tseng
A revert of this CL (patchset #15 id:280001) has been created in https://codereview.chromium.org/2440833002/ by dtseng@chromium.org. ...
4 years, 2 months ago (2016-10-20 22:36:25 UTC) #76
David Tseng
A revert of this CL (patchset #15 id:280001) has been created in https://codereview.chromium.org/2439453004/ by dtseng@chromium.org. ...
4 years, 2 months ago (2016-10-20 22:36:44 UTC) #77
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:06:40 UTC) #79
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/9cbd8a4019e2d4799e85d96741418d79ea046e71
Cr-Commit-Position: refs/heads/master@{#426138}

Powered by Google App Engine
This is Rietveld 408576698