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

Issue 1915603002: Use forceClickOnCurrentItem to mean doDefault action rather than performDefaultAction (Closed)

Created:
4 years, 8 months ago by David Tseng
Modified:
4 years, 7 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

Use forceClickOnCurrentItem to mean doDefault action rather than performDefaultAction When navigating to a new site with the below steps, we accidentally force focus back onto the omnibox. - ctrl+l - type an address - hit enter result: we stay in compat mode and we see focus is on the omnibox. This is because: - when we place focus via ctrl+l, we switch to compat mode - that results in a switch to the classic keymap - the classic keymap binds the enter key to performDefaultAction - in cvox2/background/backgorund.js, performDefaultAction does a |doDefault| action which sends a click - after entering an address, we "click" the address bar - this is racey with the focus generated by the webview Solve this by using the forceClickOnCurrentItem command (which is mapped to Cvox+space) to mean doDefault. This matches classic behavior. performDefaultAction in classic simply meant placing focus correctly when encountering internal links. TEST=navigate between sites via the above reproduction; ensure classic is on and working. BUG=605980 Committed: https://crrev.com/5f2b437436f41145c774d485602bd61edefc443c Cr-Commit-Position: refs/heads/master@{#390248}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M chrome/browser/resources/chromeos/chromevox/chromevox/background/keymaps/next_keymap.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
David Tseng
This one took a bit to figure out. Should definitely merge back to m51.
4 years, 8 months ago (2016-04-22 17:49:58 UTC) #3
dmazzoni
Great diagnosis of the issue! For the fix, I don't quite follow how multiline is ...
4 years, 8 months ago (2016-04-22 22:04:27 UTC) #5
David Tseng
PTAL. Reviewed the classic commands and forceClickOnCurrentItem is the command we want for |doDefault| action. ...
4 years, 8 months ago (2016-04-22 23:12:59 UTC) #7
dmazzoni
lgtm
4 years, 7 months ago (2016-04-27 23:17:23 UTC) #10
dmazzoni
lgtm lgtm
4 years, 7 months ago (2016-04-27 23:17:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915603002/40001
4 years, 7 months ago (2016-04-27 23:17:55 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-28 00:01:21 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:14:49 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5f2b437436f41145c774d485602bd61edefc443c
Cr-Commit-Position: refs/heads/master@{#390248}

Powered by Google App Engine
This is Rietveld 408576698