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

Issue 12390042: Fix focus for in-tab navigations. (Closed)

Created:
7 years, 9 months ago by samarth
Modified:
7 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix focus for in-tab navigations. For in-tab navigations, if the contents is supposed to be focused, we should be calling SetInitialFocus() instead of directly calling Focus() which blindly focuses the contents view. This way, WebContents can send focus to the location bar on load if it wants to. TESTED=manual, per bugs BUG=179499, 175147 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185989

Patch Set 1 #

Patch Set 2 : SetInitialFocus #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/ui/browser.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
samarth
Please take a look. Thanks, Samarth
7 years, 9 months ago (2013-03-01 23:18:30 UTC) #1
sky
This makes me nervous. Have you verified this on all platforms?
7 years, 9 months ago (2013-03-01 23:50:48 UTC) #2
samarth
No, only tested on chromeos so far. Let me try it out on Windows and ...
7 years, 9 months ago (2013-03-01 23:56:46 UTC) #3
sky
Focus is always subtle. AFAICT the current call has been there forever and no one ...
7 years, 9 months ago (2013-03-02 00:09:11 UTC) #4
samarth
Yeah I tried to poke back in the revision history and didn't find anything interesting ...
7 years, 9 months ago (2013-03-02 00:32:34 UTC) #5
sky
SGTM On Fri, Mar 1, 2013 at 4:32 PM, <samarth@chromium.org> wrote: > Yeah I tried ...
7 years, 9 months ago (2013-03-04 02:36:57 UTC) #6
samarth
Ok, changed to SetInitialFocus. Also tried this out on Windows and Mac and it seems ...
7 years, 9 months ago (2013-03-04 16:40:14 UTC) #7
sky
LGTM
7 years, 9 months ago (2013-03-04 18:10:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/12390042/9001
7 years, 9 months ago (2013-03-04 18:53:24 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-04 22:16:05 UTC) #10
Message was sent while issue was closed.
Change committed as 185989

Powered by Google App Engine
This is Rietveld 408576698