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

Issue 2465403003: Android accessibility: automatically focus links (Closed)

Created:
4 years, 1 month ago by dmazzoni
Modified:
4 years, 1 month ago
CC:
chromium-reviews, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android accessibility: automatically focus links When setting accessibility focus to a node, auto-focus it if it's a link. This is needed for some sites that have skip links that are only visible when focused. It might be possible to auto-focus more than just links but this seems the safest. Fixing this exposed a race condition with our code to refocus the node with accessibility focus if its location has changed - essentially when you click on the skip link, the skip link was changing its location, causing us to fire notifications on it because its location had changed - but that was racing with the real change to accessibility focus from following the skip link. Fix this race condition by re-focusing the node with accessibility focus after a short delay, and canceling the delayed task if accessibility focus changes again. Tested manually with two urls that exercise these code paths. BUG=657157 TESTED=http://getbootstrap.com/ and http://jsfiddle.net/mev0c4dt/show/ Committed: https://crrev.com/fd9566093da77d9413ba61f8be1b6e03daaadf33 Cr-Commit-Position: refs/heads/master@{#430006}

Patch Set 1 #

Patch Set 2 : Delay refocus on location change #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -7 lines) Patch
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 1 7 chunks +68 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
dmazzoni
4 years, 1 month ago (2016-11-02 18:25:43 UTC) #3
sgurun-gerrit only
On 2016/11/02 18:25:43, dmazzoni wrote: lgtm
4 years, 1 month ago (2016-11-04 01:44:21 UTC) #4
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/2465403003/20001
4 years, 1 month ago (2016-11-04 16:51:00 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/99992)
4 years, 1 month ago (2016-11-04 16:54:43 UTC) #8
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/2465403003/40001
4 years, 1 month ago (2016-11-04 19:59:38 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-04 20:40:39 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/fd9566093da77d9413ba61f8be1b6e03daaadf33 Cr-Commit-Position: refs/heads/master@{#430006}
4 years, 1 month ago (2016-11-04 20:42:37 UTC) #15
aelias_OOO_until_Jul13
3 years, 11 months ago (2017-01-03 22:43:20 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2609313002/ by aelias@chromium.org.

The reason for reverting is: Caused scrolling bug http://crbug.com/675567

BUG=657157,675567.

Powered by Google App Engine
This is Rietveld 408576698