DescriptionEnsure 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
Messages
Total messages: 12 (0 generated)
|