New issue
Advanced search Search tips

Issue 910628 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

WebContents should have *one* focus method

Project Member Reported by sky@chromium.org, Nov 30

Issue description

WebContents currently has three focus related functions: Focus(), SetInitialFocus() and RestoreFocus(). As a consumer of WebContents it's hard to know which one to call when, and to ensure the right one is called at the right time. I think WebContents should have a single Focus() function that ensures the right thing happens. If the initial-focus truly needs to be treated specially, perhaps it doesn't belong in WebContents at all, but rather in client code.
 

Sign in to add a comment