New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 631798 link

Starred by 2 users

Issue metadata

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

Blocked on:
issue 631202



Sign in to add a comment

TextInputManager should consider the focused Render(Frame||Widget)HostImpl while tracking TextInputState

Project Member Reported by ekaramad@chromium.org, Jul 26 2016

Issue description

Currently, the assumption behind TextInputState tracking in TextInputManager is that the IPC to set the TextInputState.type to non-NONE is always received from a RenderWidget which is already focused.

This might not be true as a slow renderer might send TextInputState/Focus IPCs too late.

We should make sure the TextInputManager::GetActiveWidget() is either null (when there is no focused <input>) or equal to the RenderWidgetHost of the focused frame. This will help us fix/avoid race conditions which might arise in pages with slow renderers.

 
Summary: TextInputManager should consider the focused Render(Frame||Widget)HostImpl while tracking TextInputState (was: TextInputManager consider focused Render(Frame||Widget)HostImpl while tracking TextInputState)
Labels: -Pri-2 Pri-1
Status: Started (was: Assigned)
Raising the priority since this might become an issue down the road (see issue 699699 for context).

We might need to still call content_view_core_->UpdateImeAdpater even when the current focused view has a TextInputState.type of ui::TEXT_INPUT_TYPE_NONE. So we should really care about focus rather than text input type.

Other than that using the concept of focus the logic behind tracking and updating TextInputState becomes much simpler to follow.
Cc: changwan@chromium.org aelias@chromium.org

Comment 4 by creis@chromium.org, Nov 18 2017

ekaramad@: Is this still needed, and still a P1?
Labels: -Pri-1 Pri-3
Uh apologies for the delayed response. Not really. This is at best more of a refactoring which is not immediately necessary. I should bump it down to P3 actually.
Status: Assigned (was: Started)

Sign in to add a comment