Chromium Code Reviews
DescriptionFixed an IME bug due to a race in TextInputStateChanged
BrowserPlugin-based guests are hidden from the frame tree and embedder
RenderWidgetHostViews. Any IME update, including TextInputState goes to
embedder's RWHV with the embedder RWHV not knowing it is actually from a
separate process.
This is prone to bugs and race conditions. For example, leaving an <input>
inside embedder to get into another one inside <guest> might lead to
ui::TEXT_INPUT_TYPE_TEXT reported by the guest process overwritten by a
ui::TEXT_INPUT_TYPE_NONE from the embedder process.
This CL will stop RenderWidgetHostImpl fixes this race on the browser side by
avoiding sending the update up from RenderWidgetHostImpl to
RenderWidgetHostViewBase when there is a focused guest with a focused <input>
on the page.
BUG=697045
Patch Set 1 #Patch Set 2 : Make sure TextInputManager exists (for interstitial pages) #Patch Set 3 : Using BrowserPlugingEmbedder for determinning focused guests #
Messages
Total messages: 20 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||