New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 631484 link

Starred by 11 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression


Participants' hotlists:
Fixing-touch

Show other hotlists

Other hotlists containing this issue:
Hotlist-1


Sign in to add a comment

webview touch event does not bubbling up to the docuement.

Reported by smile....@gmail.com, Jul 26 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Steps to reproduce the problem:
using Touch Screen Monitor(LG-23ET63).

wrote sample Chrome App for webview testing. ( code here : https://github.com/smilejp/electron-webview-event-test/tree/master/chrome_app_test_based_official_sample)

1. place webview inside document. and add touch event listener at document body and webview page body.
2. touch webview area then receive touchstart/touchend event in webview page. but do not receive document body's event handler.
3. mouse click webview area then can receive mousedown/mouseup event at webview and document body both.

What is the expected behavior?

What went wrong?
webview mouse click event can handle in document body event listener.
but, webview touch event can't handle in document body event listener.

Did this work before? Yes Chrome 47

Chrome version: 51.0.2704.103  Channel: n/a
OS Version: 8
Flash Version: Shockwave Flash 22.0 r0

tested using Electron.
before Electron v0.36.12(Chrome 47) - can bubbling webview touch event.
after Electron v0.37.0(Chrome 49) - cannot bubbling webview touch event.

tested sample chrome app - Chrome/51.0.2704.103
touch event problem same occured.
 
c4835f5a-5322-11e6-98a2-dce2cbcd1e59.gif
71.9 KB View Download
Cc: durga.behera@chromium.org
Labels: Needs-Feedback
smile.wjp@ : Thanks for the report, From the given link found "Browser Sample" extension and added to Chrome.Could you please help how to proceed further from Test Engg side to further triage it.
durga.behera@ :
thank you for your reply.

"Browser Sample" App contained 2 html files.
- browser.html
- webview1.html

i'm using webview tag in browser.html
and added touch and mouse event handler browser.html body(browser.js 99~108 lines, https://github.com/smilejp/electron-webview-event-test/blob/master/chrome_app_test_based_official_sample/browser.js#L99) and webview1.html body(webview.js 3~12 lines, https://github.com/smilejp/electron-webview-event-test/blob/master/chrome_app_test_based_official_sample/webview.js#L3)

execute "Browser Sample" App, can found white, light green, red area.

light green and red area is webview's area.
white area is browser.html body area.

if you touch red area, handle touch event only webview.
if you click red area, handle mouse event both webview and browser's body







Components: UI>Touch
Project Member

Comment 4 by sheriffbot@chromium.org, Aug 15 2016

Labels: -Needs-Feedback Needs-Review
Owner: durga.behera@chromium.org
Thank you for providing more feedback. Adding requester "durga.behera@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
I have another example of what appears to be a related issue, which is here https://github.com/IamfromSpace/webview-touch-bug

In summary, touchstart events from within a webview cause strange behaviors when other webviews or the main window is tapped.

More details (also in the example README):

In touch emulation mode (in chrome 52 and below, fixed in 55):
-no mouse events occur in webviews
-With a Planar Touch screen on Windows 7 and Windows 10:

mouse events correctly occur in the webview under normal circumstances
-If an element is tapped that calls e.preventDefault() on touchstart:
--Mouse events will NOT occur on the next click in a different context (webview, or main frame)
--These effects "stack." Tapping the element four times will mean that four taps do not fire mouse clicks when switching contexts.

As an example:
-You must be using Windows (or linux?) with an actual touchscreen--not emulation

-Tap back and forth between the main and webview click counters they will increment exactly once for each tap

-Tap the Prevent touchstart default: button
--it will increment once

-Tap the main click counter button twice.
--The first touch is ignored, and the second increments the counter
--it should increment twice

-Tap the webview click counter button twice.
--The first touch is ignored, and the second increments the counter
--it should increment twice

-Tap the Prevent touchstart default: multiple times
--it will increment once per tap

-Tap the main click counter button one more times than the value shown on the Prevent touchstart default: button
--Only the last touch will create a click event and the rest will not
--it should increment once per tap

Comment 6 by bunti...@gmail.com, Dec 8 2016

We're seeing the same issue reproduced inside the Windows Surface Pro series of devices. Because this is so reproducible, we're also seeing the same behavior with touch events inside the Electron framework (which includes a build of Chromium inside it).

Any update on when this will get in the queue would be greatly appreciated.

Comment 7 by m...@karlpablo.com, Dec 9 2016

^ Whatever he said.

Comment 8 by cda...@chromium.org, Mar 13 2017

Labels: -Needs-Review
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919
Any update on this issue would be gratefully received 
Components: UI>Shell>TouchView
Components: -UI>Touch
Cc: girard@chromium.org
I am seeing a similar error in my chrome app on both Chrome OS  58 (Chromebook) and windows. Is there an update on this issue?
I have a patch prepared for the issue I reported, however on additional investigation, I'm not convinced that the original issue is the same.  As such, I've opened a new issue here:  https://bugs.chromium.org/p/chromium/issues/detail?id=736623
Labels: Hotlist-Fixing-touch
Is this bug fixed until now? I test in Chrome/61.0.3163.100, but it's still here. Anyone knows? Thanks very much~
Status: Assigned (was: Unconfirmed)
This issue has an owner, a component and a priority, but is still listed as untriaged or unconfirmed. By definition, this bug is triaged. Changing status to "assigned". Please reach out to me if you disagree with how I've done this.

Sign in to add a comment