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

Issue 342099: Focus problem when clearing selection (Closed)

Created:
11 years, 1 month ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
ojan
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

When doing an unselect in a page, the focused node is kept focused but it does not get the keyboard input anymore and for text editable nodes there is no caret. This was happening because the focus is messed up when the selection does not include the focused node. This CL ensure the selection includes the focused node to work-around that issue. BUG=21388 TEST=Open google.com, CTRL-F and search for something not in the page. ESC to close the find-box. The search field on the Google page should have focus and typing should work. Now focus a link in the page, do a find for some text not in the page. Press ESC. Pressing enter should trigger the link. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30999

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M webkit/api/src/WebViewImpl.cpp View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jcampan
11 years, 1 month ago (2009-11-03 18:12:18 UTC) #1
ojan
Is there any way to write a test for this? http://codereview.chromium.org/342099/diff/2001/2002 File webkit/api/src/WebViewImpl.cpp (right): http://codereview.chromium.org/342099/diff/2001/2002#newcode920 ...
11 years, 1 month ago (2009-11-03 19:18:40 UTC) #2
jcampan
Regarding testing this behavior, I started writing an interactive UI test, but it gets complicated ...
11 years, 1 month ago (2009-11-03 21:31:34 UTC) #3
ojan
You can test this in a layout test using eventSender.keyDown("a"). I think you could probably ...
11 years, 1 month ago (2009-11-03 21:51:44 UTC) #4
jcampan
I filed a bug for adding a test for making sure we don't regress (http://crbug.com/26709) ...
11 years, 1 month ago (2009-11-04 19:08:37 UTC) #5
ojan
11 years, 1 month ago (2009-11-04 19:10:57 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698