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

Issue 732238 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug-Regression



Sign in to add a comment

Long press doesn't show context menu.

Reported by lakshmik...@gmail.com, Jun 12 2017

Issue description

UserAgent: 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.
 

Comment 1 Deleted

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.
Labels: -OS-Linux OS-Android
Components: Mobile>WebView
Labels: Needs-Feedback
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?
Plug-in a otg mouse and then try long press on any link with left mouse
button. Context menu fails to show..
Project Member

Comment 7 by sheriffbot@chromium.org, Jun 15 2017

Cc: gsennton@chromium.org
Labels: -Needs-Feedback
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
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

Comment 9 by torne@chromium.org, 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.
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.

Comment 11 by torne@chromium.org, 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.
Here is the APK
Labels: Needs-Feedback
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.
APk
app-debug.apk
1.5 MB Download
Source
webview.zip
70.6 KB Download
Project Member

Comment 16 by sheriffbot@chromium.org, Jun 16 2017

Labels: -Needs-Feedback
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
Cc: ntfschr@chromium.org torne@chromium.org
Labels: -Pri-2 Pri-3
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@?
Owner: jinsuk...@chromium.org
Status: Assigned (was: Unconfirmed)
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.
Cc: jinsuk...@chromium.org
Owner: mustaq@chromium.org
 Issue 666060  or others about mouse-related input events flow makes me think mustaq@ would be the right person to look into this.
Cc: aelias@chromium.org
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?
Status: WontFix (was: Assigned)
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