New issue
Advanced search Search tips

Issue 725003 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocked on:
issue 627234



Sign in to add a comment

Inconsistence in contextmenu of textdields with "contextmenu" event listener and copy/paste

Reported by michael....@googlemail.com, May 22 2017

Issue description

Steps to reproduce the problem:
1. In javascript, preventDefault() for contextmenu event listener (see attached test.html)
2. long tap onto the textfield's text -> context menu appears: Cut Copy ...
3. long tap right of the textfield's text -> no context menu appears, only the blue bubble (clipboard must not be empty)

What is the expected behavior?
Is the "copy/past/..." the context menu?
If yes, do not show in both cases.
If no, show in both cases.

What went wrong?
The context menu "copy/past/..." was shown even the event for contextmenu was set to prevented.

Did this work before? N/A 

Chrome version: 58.0.3029.83  Channel: n/a
OS Version: 6.0.1; SM-T815 Build/MMB29K
Flash Version:
 
test.html
298 bytes View Download
Components: -Blink Blink>Forms>Text

Comment 2 by tkent@chromium.org, May 26 2017

Components: -Blink>Forms>Text Blink>Editing>Selection
Status: Untriaged (was: Unconfirmed)
"copy/past/..." is not a context menu which web authors can cancel by preventDefault().  The behavior difference between step 2 and step 3 comes from existence of text, I think.

Comment 3 by yosin@chromium.org, May 26 2017

Owner: amaralp@chromium.org
Status: Assigned (was: Untriaged)
amaralp@, please confirm #c2, or put your expectation.
Thanks!
Blockedon: 627234
This is an inconsistency and crrev.com/2785853002 will make it so preventDefault() will prevent both types of menu.
Status: Fixed (was: Assigned)

Sign in to add a comment