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

Issue 1866043004: Add a nameFromNode attrib to link output rule (Closed)

Created:
4 years, 8 months ago by David Tseng
Modified:
4 years, 8 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, oshima+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a nameFromNode attrib to link output rule 1. Some sites result in an accessibility tree as follows: link name=foo children=(heading, paragraph) We end up reading the link's name when reading the children (e.g. bar heading 1, foo link This becomes noisy across multiple instances of this structure across a page. The nameFromNode attribute only adds the name if it isn't computed based on the contents of the node. 2. Content editables containing spaces come through as non-breaking spaces. In particular, this is seen in Google Docs. Add the literal string for the space so we read it when navigating by character. TEST=navigate to sites containing links with complex children. Ensure we don't read the link's name. Navigate by character in Google Docs with braille mode on in chromeVox Next. Ensure we read the space. Committed: https://crrev.com/d55c1d5f75a2350989549a684db8a4a349d0172b Cr-Commit-Position: refs/heads/master@{#388599}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -23 lines) Patch
M chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/symbols/math_whitespace.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js View 1 2 3 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 2 3 4 11 chunks +28 lines, -18 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
David Tseng
4 years, 8 months ago (2016-04-07 17:52:36 UTC) #3
dmazzoni
Is the link name dropped? What if the user overrides the name of the link ...
4 years, 8 months ago (2016-04-07 20:41:49 UTC) #4
David Tseng
The unfortunate pattern I'm seeing is: <a href="asdf" aria-label"some text here"> <h1 style="max-width=5px">some text here</h1> ...
4 years, 8 months ago (2016-04-07 21:09:47 UTC) #5
chromium-reviews
I think we should consider the link to be a leaf node in this case. ...
4 years, 8 months ago (2016-04-07 22:18:34 UTC) #6
David Tseng
Unfortunately, that goes against a consistent selection model. I'll file a bug and maybe ew ...
4 years, 8 months ago (2016-04-07 22:42:03 UTC) #7
David Tseng
PTAL; went ahead and added nameFrom as an attribute for the enter link output rule. ...
4 years, 8 months ago (2016-04-18 21:50:49 UTC) #8
dmazzoni
lgtm Great, I like it https://codereview.chromium.org/1866043004/diff/40001/chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js File chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js (right): https://codereview.chromium.org/1866043004/diff/40001/chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js#newcode368 chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js:368: chrome.automation.AutomationNode.prototype.DescriptionFrom; lowercase d in ...
4 years, 8 months ago (2016-04-19 18:26:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866043004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866043004/60001
4 years, 8 months ago (2016-04-20 20:05:11 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/157812)
4 years, 8 months ago (2016-04-20 20:38:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1866043004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1866043004/80001
4 years, 8 months ago (2016-04-20 22:17:35 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-20 23:52:43 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:27:35 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d55c1d5f75a2350989549a684db8a4a349d0172b
Cr-Commit-Position: refs/heads/master@{#388599}

Powered by Google App Engine
This is Rietveld 408576698