Inconsistence in contextmenu of textdields with "contextmenu" event listener and copy/paste
Reported by
michael....@googlemail.com,
May 22 2017
|
|||||
Issue descriptionSteps 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:
,
May 26 2017
"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.
,
May 26 2017
amaralp@, please confirm #c2, or put your expectation. Thanks!
,
May 26 2017
This is an inconsistency and crrev.com/2785853002 will make it so preventDefault() will prevent both types of menu.
,
Jun 12 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by schenney@chromium.org
, May 22 2017