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

Issue 2929543002: Request Composition Range Updates for Focused GuestViews based on BrowserPlugins (Closed)

Created:
3 years, 6 months ago by EhsanK
Modified:
3 years, 6 months ago
Reviewers:
Charlie Reis, lazyboy
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Request Composition Range Updates for Focused GuestViews based on BrowserPlugins Since the patch https://codereview.chromium.org/2121953002/ landed, composition range information are only requested for RenderWidgets which have a focused text input box, that is, their TextInputState.type != ui::TEXT_INPUT_STATE_NONE. This change however is not implemented for guest views which are based on BrowserPlugin and therefore, some IME features in Japanese IME have regressed for <webview>s. While this is not a bug in OOPIF-based guests, it is still an important bug to fix because: 1- PDFs will still use BrowserPlugin for a while, 2- OOPIF-based <webview>'s might not launch in M60. This patch will add the support by sending the request after BrowserPluginGuest forwards a TextInputStateChanged call to RenderWidgetHostViewGuest. BUG=714771 Review-Url: https://codereview.chromium.org/2929543002 Cr-Commit-Position: refs/heads/master@{#479698} Committed: https://chromium.googlesource.com/chromium/src/+/2c3c487604c90c9ce96fefe0a32f660050f9fe55

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding a comment #

Patch Set 3 : Adding a test #

Total comments: 4

Patch Set 4 : Formatting #

Patch Set 5 : Added a comment #

Total comments: 8

Patch Set 6 : Addressing nits and fixing a link error on Windows bots #

Patch Set 7 : Added a comment #

Total comments: 2

Patch Set 8 : Rebased #

Patch Set 9 : Addressing comments #

Patch Set 10 : Rebased #

Patch Set 11 : Using numeric_limits::max instead of -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -2 lines) Patch
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +106 lines, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 1 chunk +14 lines, -1 line 0 comments Download
M content/browser/renderer_host/text_input_manager.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/text_input_manager.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 3 4 5 5 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (23 generated)
EhsanK
Hello Charlie, PTAL. This bug is not important if OOPIF-webview ships. But given that it ...
3 years, 6 months ago (2017-06-06 21:51:14 UTC) #2
Charlie Reis
On 2017/06/06 21:51:14, EhsanK wrote: > Hello Charlie, PTAL. > > This bug is not ...
3 years, 6 months ago (2017-06-06 22:52:13 UTC) #3
EhsanK
On 2017/06/06 22:52:13, Charlie Reis wrote: > On 2017/06/06 21:51:14, EhsanK wrote: > > Hello ...
3 years, 6 months ago (2017-06-09 18:15:45 UTC) #4
EhsanK
https://codereview.chromium.org/2929543002/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/2929543002/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#newcode657 content/browser/browser_plugin/browser_plugin_guest.cc:657: rwh->RequestCompositionUpdates( On 2017/06/06 22:52:13, Charlie Reis wrote: > Can ...
3 years, 6 months ago (2017-06-09 19:09:10 UTC) #5
Charlie Reis
Thanks. Seems ok that the test is BrowserPlugin-specific if the bug is. (Obviously a general ...
3 years, 6 months ago (2017-06-09 21:38:17 UTC) #6
EhsanK
Thanks Charlie! Adding lazyboy@ for test file reviews. Istiaque, PTAL! https://codereview.chromium.org/2929543002/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2929543002/diff/40001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode571 ...
3 years, 6 months ago (2017-06-12 13:41:22 UTC) #10
lazyboy
web_view_interactive_browsertest.cc lgtm with nits. https://codereview.chromium.org/2929543002/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2929543002/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode583 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:583: if (did_update_composition_range_ && nit: base::Optional ...
3 years, 6 months ago (2017-06-12 21:35:08 UTC) #13
EhsanK
Thanks! Charlie: I had to make some changes to text_input_manager.* and text_input_test_utils.* files to fix ...
3 years, 6 months ago (2017-06-13 20:56:56 UTC) #20
Charlie Reis
Thanks, LGTM. https://codereview.chromium.org/2929543002/diff/120001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2929543002/diff/120001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode593 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:593: uint32_t length; nit: Let's initialize this to ...
3 years, 6 months ago (2017-06-14 19:57:22 UTC) #21
EhsanK
Thank you all! I will try to CQ soon and hopefully merge this to M60 ...
3 years, 6 months ago (2017-06-14 21:51:19 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2929543002/200001
3 years, 6 months ago (2017-06-15 13:53:04 UTC) #32
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/2c3c487604c90c9ce96fefe0a32f660050f9fe55
3 years, 6 months ago (2017-06-15 14:58:25 UTC) #35
lijeffrey1
On 2017/06/15 14:58:25, commit-bot: I haz the power wrote: > Committed patchset #11 (id:200001) as ...
3 years, 6 months ago (2017-06-20 20:56:45 UTC) #36
lazyboy
On 2017/06/20 20:56:45, lijeffrey1 wrote: > On 2017/06/15 14:58:25, commit-bot: I haz the power wrote: ...
3 years, 6 months ago (2017-06-20 22:23:58 UTC) #37
EhsanK
On 2017/06/20 22:23:58, lazyboy wrote: > On 2017/06/20 20:56:45, lijeffrey1 wrote: > > On 2017/06/15 ...
3 years, 6 months ago (2017-06-22 20:14:28 UTC) #38
EhsanK
3 years, 6 months ago (2017-06-23 02:09:10 UTC) #39
Message was sent while issue was closed.
On 2017/06/22 20:14:28, EhsanK wrote:
> On 2017/06/20 22:23:58, lazyboy wrote:
> > On 2017/06/20 20:56:45, lijeffrey1 wrote:
> > > On 2017/06/15 14:58:25, commit-bot: I haz the power wrote:
> > > > Committed patchset #11 (id:200001) as
> > > >
> > >
> >
>
https://chromium.googlesource.com/chromium/src/+/2c3c487604c90c9ce96fefe0a32f...
> > > 
> > > Findit suggests this CL introduced a flaky test
> > >
"WebViewInteractiveTests/WebViewImeInteractiveTest.CompositionRangeUpdates/0
> "
> > > according to an analysis at
> > >
> >
>
https://findit-for-me.appspot.com/waterfall/flake?key=ag9zfmZpbmRpdC1mb3ItbWV...
> > > 
> > > Can someone please help verify?
> > > 
> > > Thanks,
> > > Jeff on behalf of Findit team
> > 
> > That test (CompositionRangeUpdates) was added by this CL. ekaramad@, can
> > you take a look at the flake?
> 
> Sorry for the delay. I am currently in chrome bootcamp. I can take a look
> tomorrow afternoon.

I took a stab at this and apparently the problem is with the internals of the
text_input_test_utils.cc. I will submit a followup CL for this bug.

Powered by Google App Engine
This is Rietveld 408576698