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

Issue 2713193003: Added a quick heuristic to determine which objects are the target of in-page links and stop ignorin… (Closed)

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

Description

Added a quick heuristic to determine which objects are the target of in-page links and stop ignoring them for purposes of accessibility. Windows screen readers were getting confused if the object to which an in-page link scrolled to was not an actual link target. BUG=37721 R=dmazzoni@chromium.org TESTED=manual testing with file attached to bug CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2713193003 Cr-Commit-Position: refs/heads/master@{#461530} Committed: https://chromium.googlesource.com/chromium/src/+/9ddb2190fe84221506e9ada748bbea36f45b050d

Patch Set 1 #

Patch Set 2 : Sends the first unignored parent instead of the next sibling. #

Patch Set 3 : Excluded nodes that are in the shadow DOM from being link targets. #

Patch Set 4 : Fixed some more test expectations. #

Patch Set 5 : Fixed another bug. #

Patch Set 6 : Fixed a tiny error. #

Patch Set 7 : Fixed test expectations. #

Patch Set 8 : Rebased with master. #

Patch Set 9 : Attempted to fix failing Chromevox test. #

Patch Set 10 : Anchor elements that are link targets should get a static text role. #

Patch Set 11 : Not active links should be static text. #

Patch Set 12 : Fixed tests. #

Patch Set 13 : Fixed tests on Android. #

Patch Set 14 : Fixed links with Jaws. #

Patch Set 15 : Fixed anchor with ID and Jaws. #

Patch Set 16 : Fixed tests. #

Patch Set 17 : Fixed Android test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -46 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 2 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 1 comment Download
M content/renderer/accessibility/blink_ax_enum_conversion.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/test_runner/web_ax_object_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/a-name-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/a-name-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/in-page-links-expected-android.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -3 lines 0 comments Download
M content/test/data/accessibility/html/in-page-links-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +10 lines, -7 lines 0 comments Download
M content/test/data/accessibility/html/in-page-links-expected-mac.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/in-page-links-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/clickable.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/clickable-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/in-page-link-target.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/onclick-handlers.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/table-with-aria-role-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +34 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebAXEnums.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 109 (88 generated)
nektarios
3 years, 9 months ago (2017-02-25 00:28:56 UTC) #1
dmazzoni
lgtm This is fine with me, it's really just a question of it it breaks ...
3 years, 9 months ago (2017-02-27 20:06:40 UTC) #10
dmazzoni
Ping, did you want to finish this one?
3 years, 8 months ago (2017-03-29 15:28:29 UTC) #47
blink-reviews
Yes, most of the tests were fixed a while back. However, one test is still ...
3 years, 8 months ago (2017-03-29 21:02:20 UTC) #50
chromium-reviews
Yes, most of the tests were fixed a while back. However, one test is still ...
3 years, 8 months ago (2017-03-29 21:02:21 UTC) #51
dmazzoni
OK, I think what's happening is that the tree change events we're getting are different ...
3 years, 8 months ago (2017-03-29 21:38:26 UTC) #52
dmazzoni
OK, I think what's happening is that the tree change events we're getting are different ...
3 years, 8 months ago (2017-03-29 21:38:26 UTC) #53
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/2713193003/210001
3 years, 8 months ago (2017-03-31 14:46:06 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/262245)
3 years, 8 months ago (2017-03-31 15:43:20 UTC) #73
dmazzoni
lgtm
3 years, 8 months ago (2017-03-31 21:24:07 UTC) #80
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/2713193003/290001
3 years, 8 months ago (2017-04-02 18:51:28 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/262979)
3 years, 8 months ago (2017-04-02 20:17:08 UTC) #93
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/2713193003/310001
3 years, 8 months ago (2017-04-03 15:10:22 UTC) #96
David Tseng
https://codereview.chromium.org/2713193003/diff/310001/chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs (right): https://codereview.chromium.org/2713193003/diff/310001/chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs#newcode105 chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs:105: document.querySelectorAll('div div')[0].textContent = 'Alpha'; nit: unsure why this was ...
3 years, 8 months ago (2017-04-03 17:20:18 UTC) #98
David Tseng
https://codereview.chromium.org/2713193003/diff/310001/chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs File chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs (right): https://codereview.chromium.org/2713193003/diff/310001/chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs#newcode105 chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions_test.extjs:105: document.querySelectorAll('div div')[0].textContent = 'Alpha'; On 2017/04/03 17:20:18, David Tseng ...
3 years, 8 months ago (2017-04-03 17:21:48 UTC) #99
David Tseng
3 years, 8 months ago (2017-04-03 17:21:57 UTC) #100
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/413707)
3 years, 8 months ago (2017-04-03 17:25:40 UTC) #102
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/2713193003/310001
3 years, 8 months ago (2017-04-03 18:49:12 UTC) #104
blink-reviews
ui::AX_ROLE_ANCHOR: > Note that ChromeVox needs something like this in > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js > > Specifically, ...
3 years, 8 months ago (2017-04-03 18:56:08 UTC) #105
chromium-reviews
ui::AX_ROLE_ANCHOR: > Note that ChromeVox needs something like this in > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js > > Specifically, ...
3 years, 8 months ago (2017-04-03 18:56:08 UTC) #106
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 20:55:35 UTC) #109
Message was sent while issue was closed.
Committed patchset #17 (id:310001) as
https://chromium.googlesource.com/chromium/src/+/9ddb2190fe84221506e9ada748bb...

Powered by Google App Engine
This is Rietveld 408576698