DescriptionUse guest's existing GestureRecognizer instead of global one.
This makes touch events work in <webview>.
Otherwise GestureRecognizer starts sending event to bogus Window*, which
crashes the browser.
BUG=413017
Test=
In a touch enabled device, open a chrome app that has a <webview>.
e.g. https://chrome.google.com/webstore/detail/edggnmnajhcbhlnpjnogkjpghaikidaa
Try doing the following actions, none of them should crash the browser.
1. Tap on an input box, e.g. by going to http://www.google.com.
2. Scrolling a page should work.
3. Go to a page that has no touch handlers, you should be able to scroll the
page w/o problem.
3. Go to a page that has touch handlers (e.g. touchstart), you should be able
to scroll the page w/o problem.
4. Go to a page that has preventDefault() on touchstart event, you shouldn't
be able to scroll the page.
Committed: https://crrev.com/764ceed3b786f3e92fa39d547ae55b0082c0601e
Cr-Commit-Position: refs/heads/master@{#294971}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|