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

Issue 1942953003: Accessible setSelection function should use VisiblePositions (Closed)

Created:
4 years, 7 months ago by dmazzoni
Modified:
4 years, 7 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, haraken, 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

Accessible setSelection function should use VisiblePositions The accessible setSelection function tries to select text in the DOM based on nodes and text offsets within the accessibility tree. However, this was implemented assuming that the text offsets were Positions, but they should actually be VisiblePositions, since typically redundant whitespace is not displayed visibly and similarly not included in the accessible name of text nodes. BUG=602455 Committed: https://crrev.com/9618f0ed66c582e8791fa6d37459056698ec1778 Cr-Commit-Position: refs/heads/master@{#393722}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test for selecting whole element #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -4 lines) Patch
A third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html View 1 1 chunk +77 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
dmazzoni
4 years, 7 months ago (2016-05-02 21:57:09 UTC) #2
nektarios
Thanks for fixing this! I noticed the offsets didn't match back in August but didn't ...
4 years, 7 months ago (2016-05-02 22:09:59 UTC) #3
nektarios
lgtm
4 years, 7 months ago (2016-05-02 22:10:21 UTC) #4
dmazzoni
On 2016/05/02 22:09:59, nektarios wrote: > One request: Could you have a look at AXLayoutObject::selection() ...
4 years, 7 months ago (2016-05-02 22:21:50 UTC) #5
dmazzoni
By the way, there are some corner cases that might not work both when setting ...
4 years, 7 months ago (2016-05-02 22:22:57 UTC) #6
David Tseng
Thanks for the fix! https://codereview.chromium.org/1942953003/diff/1/third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html File third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html (right): https://codereview.chromium.org/1942953003/diff/1/third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html#newcode38 third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html:38: axTextNode2.setSelectedTextRange(0, 6); Can you also ...
4 years, 7 months ago (2016-05-02 23:38:55 UTC) #8
dglazkov
lgtm
4 years, 7 months ago (2016-05-13 18:09:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942953003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942953003/1
4 years, 7 months ago (2016-05-13 18:11:35 UTC) #12
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/169858)
4 years, 7 months ago (2016-05-13 18:54:15 UTC) #14
dmazzoni
https://codereview.chromium.org/1942953003/diff/1/third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html File third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html (right): https://codereview.chromium.org/1942953003/diff/1/third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html#newcode38 third_party/WebKit/LayoutTests/accessibility/set-selection-whitespace.html:38: axTextNode2.setSelectedTextRange(0, 6); On 2016/05/02 23:38:55, David Tseng wrote: > ...
4 years, 7 months ago (2016-05-13 21:42:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942953003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942953003/20001
4 years, 7 months ago (2016-05-13 21:53:06 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-14 01:20:24 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-14 01:21:29 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9618f0ed66c582e8791fa6d37459056698ec1778
Cr-Commit-Position: refs/heads/master@{#393722}

Powered by Google App Engine
This is Rietveld 408576698