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

Issue 10908151: aura: Fix focus on web contents for popup windows (Closed)

Created:
8 years, 3 months ago by James Cook
Modified:
8 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

aura: Fix focus on web contents for popup windows On Aura when the BrowserView attempts to set focus during its setup it is blocked because this parent BrowserFrameAura isn't yet visible. This means the RenderWidgetHostViewAura doesn't gain focus, so JavaScript calls to element.focus() don't result in being able to type into a field. This was affecting chat apps that open popups for chat sessions. Fixed by calling BrowserView::RestoreFocus() when the browser's window becomes visible. BUG=144342 TEST=existing focus tests, sample pages in bug, manual exercise of focus in location bar and web page during window creation and show/hide during minimize/restore Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155791

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : don't need check for initial show #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M chrome/browser/ui/views/frame/browser_frame_aura.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_aura.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
James Cook
Sky, PTAL. This is the patch I just showed you, with the initial-show boolean removed. ...
8 years, 3 months ago (2012-09-07 22:35:20 UTC) #1
sky
LGTM
8 years, 3 months ago (2012-09-07 22:45:15 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/10908151/4001
8 years, 3 months ago (2012-09-10 17:25:15 UTC) #3
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 19:14:19 UTC) #4
Change committed as 155791

Powered by Google App Engine
This is Rietveld 408576698