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

Issue 79024: Fix 10573: Dismissing FindInPage doesn't set focus to the link... (Closed)

Created:
11 years, 8 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix 10573: Dismissing Find-in page doesn't set focus to the link found. We no longer use the selection controller to highlight the active match. Before this change, the focus would not be set if the user had changed the selection. After this change, the focus will be set unless the user has selected something on the page. I also wrote an in-browser unit test for this to catch this regression in the future, but it is disabled due to problem with running multiple in-process browser tests in a row (teardown problem). BUG=10573 TEST=Covered by in process browser test now, see bug for repro steps. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13945

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -67 lines) Patch
M chrome/browser/browser_focus_uitest.cc View 6 chunks +4 lines, -59 lines 0 comments Download
M chrome/browser/views/find_bar_win_unittest.cc View 5 chunks +61 lines, -2 lines 0 comments Download
A chrome/test/data/find_in_page/end_state.html View 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/test/ui_test_utils.h View 1 2 chunks +39 lines, -1 line 0 comments Download
M chrome/test/ui_test_utils.cc View 3 chunks +40 lines, -1 line 0 comments Download
M webkit/glue/webframe_impl.cc View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Finnur
11 years, 8 months ago (2009-04-16 22:02:46 UTC) #1
jcampan
11 years, 8 months ago (2009-04-17 16:45:31 UTC) #2
LGTM

http://codereview.chromium.org/79024/diff/1/3
File chrome/test/ui_test_utils.h (right):

http://codereview.chromium.org/79024/diff/1/3#newcode44
Line 44: class JavaScriptRunner : public NotificationObserver {
Nit: a comment on how to use that class would be useful.

Powered by Google App Engine
This is Rietveld 408576698