Chromium Code Reviews
DescriptionUse 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 : #
Messages
Total messages: 16 (8 generated)
|
||||||||||||||||||||||||||||