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

Issue 140833005: Ensure touch handler state on Android is accurate after preload (Closed)

Created:
6 years, 11 months ago by Rick Byers
Modified:
6 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

Ensure touch handler state on Android is accurate after preload In preload scenarios, ContentViewCore is attached to RenderWidgetHostViewAndroid when the contents becomes visible - long after the page was loaded as JS has been run. If that JS registered a touch event handler, then ContentViewCore won't be notified of it, and future touch events will be dropped on the floor. Fix this by sending the current touch handler state to ContentViewCore when it's attached. This required moving the initialization of ContentViewGestureHandler (and related pieces) slightly earlier. This fix is intentionally minimal to lower the merge risk. A more complete fix would be to stop worrying about the touch handler state up in java at all - leave it all to the common code in InputRouter (which is already relied upon for Aura). We will get this essentially for free as part of http://crbug.com/332418. BUG=332961 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245723

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M content/browser/renderer_host/input/input_router_impl.cc View 1 chunk +3 lines, -0 lines 1 comment Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +5 lines, -0 lines 1 comment Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 2 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Rick Byers
Jared, please take a look. As we discussed, I don't think there's any easy way ...
6 years, 11 months ago (2014-01-16 21:54:03 UTC) #1
jdduke (slow)
dtrainor@: Is it fine if RWVHA calls back into CVC (Java) during initialization? Or should ...
6 years, 11 months ago (2014-01-16 22:53:04 UTC) #2
Rick Byers
On 2014/01/16 22:53:04, jdduke wrote: > dtrainor@: Is it fine if RWVHA calls back into ...
6 years, 11 months ago (2014-01-17 15:31:37 UTC) #3
jdduke (slow)
On 2014/01/17 15:31:37, Rick Byers wrote: > On 2014/01/16 22:53:04, jdduke wrote: > > dtrainor@: ...
6 years, 11 months ago (2014-01-17 15:43:13 UTC) #4
David Trainor- moved to gerrit
On 2014/01/16 22:53:04, jdduke wrote: > dtrainor@: Is it fine if RWVHA calls back into ...
6 years, 11 months ago (2014-01-17 18:01:01 UTC) #5
jdduke (slow)
content/browser/renderer_host/input/ and content/public/android/ lgtm.
6 years, 11 months ago (2014-01-17 18:12:22 UTC) #6
Rick Byers
On 2014/01/17 18:12:22, jdduke wrote: > content/browser/renderer_host/input/ and content/public/android/ lgtm. Thanks. +aelias for OWNERS of ...
6 years, 11 months ago (2014-01-17 18:19:52 UTC) #7
aelias_OOO_until_Jul13
lgtm, thanks!
6 years, 11 months ago (2014-01-17 19:33:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/140833005/1
6 years, 11 months ago (2014-01-17 20:22:53 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=248214
6 years, 11 months ago (2014-01-17 22:55:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/140833005/1
6 years, 11 months ago (2014-01-18 00:35:40 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-18 02:23:35 UTC) #12
Message was sent while issue was closed.
Change committed as 245723

Powered by Google App Engine
This is Rietveld 408576698