IME window disappears after switching focus to <input> in OOPIF. |
|||
Issue descriptionOS: Windows, Linux What steps will reproduce the problem? (1) Run chrome with --site-per-process flag and open a page with <input> and navigate an <iframe> on the page to some cross origin URL which has an <input> in its DOM. (2) Focus an <input> in iframe or the main frame and activate IME and start typing. (3) Before confirming the composition (window is open), click on the <input> in the cross process frame. What is the expected output? IME is enabled on the newly focused <input>. What do you see instead? IME is disabled on the newly focused <input>.
,
Jul 21 2016
,
Jul 27 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/44c242985f1c9f81dc56e7d5122776250b1f1a66 commit 44c242985f1c9f81dc56e7d5122776250b1f1a66 Author: ekaramad <ekaramad@chromium.org> Date: Wed Jul 27 21:17:29 2016 In TextInputManager, reset input type to none before switching active widgets. When there are no OOPIFs in a page, if we switch focus from one <input> into another (i.e., through a mouse click), the TextInputState will be first set to NONE and then back to TEXT. This however does not always happen when there are OOPIFs since the two IPCs might arrive from different RenderWidgets and the order of arrival is not deterministic (e.g., the IPC to set to TEXT could arrive sooner). Although TextInputManager tracks the state and active widget correctly (regardless of what order the IPCs arrive from the RenderWidgets), it still does not mimic the exact same behavior as in the single RenderWidget case. In Aura platforms, without setting the TextInputState to none before changing the active widget, the IME behavior might go wrong and InputMethod behave out of sync with the actual TextInputState. The reason is that the InputMethod would believe that the TextInputClient is the same but the IME session has ended. This CL will try to simulate the same behavior for all scenarios by injecting a TextInputState of none in between an active widget change. BUG= 626171 , 578168 , 602723 Review-Url: https://codereview.chromium.org/2171443003 Cr-Commit-Position: refs/heads/master@{#408239} [modify] https://crrev.com/44c242985f1c9f81dc56e7d5122776250b1f1a66/chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc [modify] https://crrev.com/44c242985f1c9f81dc56e7d5122776250b1f1a66/content/browser/renderer_host/text_input_manager.cc
,
Aug 3 2016
Is this one fixed now?
,
Aug 11 2016
I believe it must be fixed as I myself cannot reproduce this anymore on ToT. |
|||
►
Sign in to add a comment |
|||
Comment 1 by ekaramad@chromium.org
, Jul 19 2016