New issue
Advanced search Search tips

Issue 674589 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 150835
Owner: ----
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

allow JS to copy image only with execCommand('Copy')

Reported by yong...@toremote.com, Dec 15 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
1. select a image element.
2. run execCommand('Copy')

What is the expected behavior?
content with image format (png, jpeg) be copied to clipbaord

What went wrong?
image within a html format copied to clipboard

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.99  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

Most drawing applications don't support HTML format which means you can not copy image using JavaScript.
Chrome in this case should copy image format to local clipboard or support APIs like createControlRange in IE:
http://stackoverflow.com/questions/10221298/copy-image-to-clipboard-not-working-in-firefox-chrome
 
Labels: Needs-Milestone
Adding 'Needs-Milestone' label, TE will check the issue and update the bug with comments & tag with respective Mstone

Comment 2 by tkent@chromium.org, Dec 19 2016

Components: Blink>Editing Blink>DataTransfer

Comment 3 by dcheng@chromium.org, Dec 19 2016

Mergedinto: 150835
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment