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

Issue 2319903003: Don't expose Android set selection accessibility action for empty text fields (Closed)

Created:
4 years, 3 months ago by dmazzoni
Modified:
4 years, 2 months ago
Reviewers:
David Tseng
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't expose Android set selection accessibility action for empty text fields We shouldn't be exposing the SET_SELECTION action on text fields that only have placeholder text, that's how TalkBack distinguishes between real text and placeholder text. Also fixes bug where CUT, COPY, and PASTE actions were set in the base class but not the Lollipop subclass. BUG=645161 Committed: https://crrev.com/f43b118065d29486b240bc3546ac566c01959ebb Cr-Commit-Position: refs/heads/master@{#424217}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix bug in GetValue and add tests #

Patch Set 3 : Fix test expectations #

Patch Set 4 : Fix last expectations #

Patch Set 5 : Added a TODO for readonly #

Patch Set 6 : Update one test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -32 lines) Patch
M content/browser/accessibility/accessibility_tree_formatter_android.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_android.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/LollipopBrowserAccessibilityManager.java View 2 chunks +9 lines, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-invalid-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-readonly-expected-android.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-expected-android.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection-expected-android.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/html/input-datetime-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-email-expected-android.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-password-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-search-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-tel-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-text-expected-mac.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-text-expected-win.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-text-name-calc-expected-android.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-text-value-changed-expected-android.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/data/accessibility/html/input-text-value-expected-android.txt View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/input-text-with-selection-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/input-url-expected-android.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (23 generated)
dmazzoni
4 years, 3 months ago (2016-09-08 18:04:15 UTC) #5
David Tseng
https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc File content/browser/accessibility/browser_accessibility_manager_android.cc (right): https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc#newcode428 content/browser/accessibility/browser_accessibility_manager_android.cc:428: !node->GetValue().empty()); If I understand the bug correctly, don't you ...
4 years, 3 months ago (2016-09-08 20:49:47 UTC) #8
dmazzoni
Fixed and updated tests. https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc File content/browser/accessibility/browser_accessibility_manager_android.cc (right): https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc#newcode428 content/browser/accessibility/browser_accessibility_manager_android.cc:428: !node->GetValue().empty()); On 2016/09/08 at 20:49:47, ...
4 years, 2 months ago (2016-10-05 19:40:48 UTC) #17
David Tseng
https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc File content/browser/accessibility/browser_accessibility_manager_android.cc (right): https://codereview.chromium.org/2319903003/diff/1/content/browser/accessibility/browser_accessibility_manager_android.cc#newcode428 content/browser/accessibility/browser_accessibility_manager_android.cc:428: !node->GetValue().empty()); On 2016/10/05 19:40:48, dmazzoni_ooo_until_oct_10 wrote: > On 2016/09/08 ...
4 years, 2 months ago (2016-10-06 16:27:58 UTC) #22
dmazzoni
On 2016/10/06 16:27:58, David Tseng wrote: > Value comes from value description and string value ...
4 years, 2 months ago (2016-10-10 15:19:31 UTC) #23
David Tseng
lgtm Update the description to say Don't expose action set selection when a text field ...
4 years, 2 months ago (2016-10-10 16:06:54 UTC) #24
dmazzoni
Title updated to make it more clear, thanks
4 years, 2 months ago (2016-10-10 16:33:30 UTC) #26
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/2319903003/100001
4 years, 2 months ago (2016-10-10 19:13:40 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-10 20:14:13 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 20:17:02 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f43b118065d29486b240bc3546ac566c01959ebb
Cr-Commit-Position: refs/heads/master@{#424217}

Powered by Google App Engine
This is Rietveld 408576698