Issue metadata
Sign in to add a comment
|
Long press doesn't show context menu.
Reported by
lakshmik...@gmail.com,
Jun 12 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36 Steps to reproduce the problem: 1. Sync to the lastest code. 2. Build system_webview_apk for android. 3. deploy APK on android N. 4. enable otg cable. 5. Long press on a link and observe. What is the expected behavior? Long press should show context menu. What went wrong? Long press has no . Did this work before? Yes 52.0.2743.100 Chrome version: 60.0.3112.26 Channel: stable OS Version: Flash Version: This version of APk was released as part of Android N & was able to verify on this version.
,
Jun 12 2017
52.0.2743.100 version of APk was released as part of Android N & was able to verify on this version. Note: long press with cursor doesn't work.
,
Jun 13 2017
,
Jun 14 2017
,
Jun 15 2017
Just to clarify: you synced the chromium repository, and built system_webview_apk, installed it on an Android N phone, and now long pressing on a link in WebView doesn't work? What app did you use to test this? What commit did you sync chromium to? What device are you using?
,
Jun 15 2017
Plug-in a otg mouse and then try long press on any link with left mouse button. Context menu fails to show..
,
Jun 15 2017
Thank you for providing more feedback. Adding requester "gsennton@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 15 2017
I created a sample webview app..noticed the issue when using otg mouse.. I was working with latest version when I reported. Also note I was able to verify that issue is not reproducible on version 55.0.2848.0 and earlier versions.. Try on the latest.. u can try last week build. That's when I reported the issue.. Let me know if u need more info
,
Jun 15 2017
Can you provide the app you're using to test this (ideally with source code?) WebView doesn't implement a context menu itself, so it's hard to test what you're talking about without seeing how the app is handling the long press.
,
Jun 15 2017
We all know Webview doesn't implement context menu..application has to implement context menu in by overriding onCreateContextMenu from the activity in android. What i'm trying to say is long press with the otg mouse cursor doesn't trigger this callback.
,
Jun 15 2017
Yes, this is why I'm asking to provide the application you're using to test this, so we can try it.
,
Jun 15 2017
Here is the APK
,
Jun 16 2017
There's no APK attached to your comment (maybe you attached it to your email, but it didn't get picked up by the bug tracker). If you could provide the code as well (for a minimal example) that would be great. We do have several bugs related to showing the context menu in 60, so my guess is this is related to one of those. We would need to know what device you are testing on as well - so we can reproduce this properly.
,
Jun 16 2017
APk
,
Jun 16 2017
Source
,
Jun 16 2017
Thank you for providing more feedback. Adding requester "gsennton@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 18 2017
This is a mouse-specific bug. In TextView, a long leftclick acts the same as a long-press (it opens the context menu). Neither WebView nor Chrome handle the long leftclick like this (it appears to be a NOOP). Does Android have a strong convention for what to do here? Should we strive to be consistent with TextView? Otherwise, I think we should toss this in the bug pool. Thoughts torne@, gsennton@?
,
Jul 21 2017
jinsukkim@ would you be the right person to guide on this? I see that you've done some stuff in EventForwarder.java, which looks like the right starting point for fixing this. Please assign back if this isn't your area.
,
Jul 24 2017
Issue 666060 or others about mouse-related input events flow makes me think mustaq@ would be the right person to look into this.
,
Jul 24 2017
I think long-press context menu is a Touch-UI behavior, so Chrome/Webview is WAI for mouse. aelias@: any comment on consistency with TextView?
,
Jul 24 2017
I doubt the TextView behavior is an intentional design choice on the part of Android platform. I think it's more important to be consistent with mouse behavior on other Chrome platforms. Sounds fine to WontFix. Note that WebView calling showContextMenu(x, y) API on mouse right-click is tracked in http://crbug.com/687787 |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 Deleted