Chromium Code Reviews
DescriptionMake WebContentsObserver::DidGetUserInteraction fire on TouchStart instead of GestureTapBegin.
GestureTapBegin is a synthetic event generated by the input system. If
a website captures a touch event and calls preventDefault() on it, the
GestureTapBegin event will not be generated.
This is problematic for site engagement, which is a primary consumer of
the DidGetUserInteraction API. Touch events which are captured by sites
cannot earn engagement because the event is never passed through.
This CL addresses the issue by changing DidGetUserInteraction to fire on
TouchStart events rather than GestureTapBegin. This has negligible
performance impact, and no real behavioural impact on the current API
consumers. Unit tests for methods based on DidGetUserInteraction are
updated to never send GestureTapBegin, and instead send TouchStart in
its place.
BUG=654976
Committed: https://crrev.com/26940224a3ebb4b7a8f4e632953d57f720301a17
Cr-Commit-Position: refs/heads/master@{#424932}
Patch Set 1 #
Messages
Total messages: 17 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||