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

Issue 2446263002: Fix bad focus state tracking (Closed)

Created:
4 years, 1 month ago by David Tseng
Modified:
4 years, 1 month ago
Reviewers:
dmazzoni
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bad focus state tracking Since |automationUtil.updateFocusedNode| gets called both from the client |getFocus| api as well as by onAccessibilityEvents (when receiving focus events), we sometimes discarded focus events because we updated focus when a client called getFocus before the actual focus event fires. In the attached bug, we fire a childrenChanged event where we already implicitly changed the focused node. On an event handler, a client calls getFocus, updating the focused node. The next event, the actual focus event, is discard incorrectly. BUG=658621 Committed: https://crrev.com/6e3a3a84756c2ee9d06f9c0766b694ea6520f368 Cr-Commit-Position: refs/heads/master@{#427417}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -12 lines) Patch
M chrome/renderer/resources/extensions/automation_custom_bindings.js View 3 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
David Tseng
4 years, 1 month ago (2016-10-25 15:44:24 UTC) #3
dmazzoni
lgtm Good catch
4 years, 1 month ago (2016-10-25 16:57:26 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/2446263002/1
4 years, 1 month ago (2016-10-25 17:33:35 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-25 18:22:13 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 18:38:29 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6e3a3a84756c2ee9d06f9c0766b694ea6520f368
Cr-Commit-Position: refs/heads/master@{#427417}

Powered by Google App Engine
This is Rietveld 408576698