New issue
Advanced search Search tips

Issue 805821 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 150835
Owner: ----
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Add ability to write clipboard data in JS and prompt user to allow

Reported by flexcapa...@gmail.com, Jan 25 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:58.0) Gecko/20100101 Firefox/58.0

Steps to reproduce the problem:
1. User visits meme creating website 
2. User creates a meme
3. User wants to copy to clipboard
4. Developer calls clipboard.copy(image)

What is the expected behavior?
Allow method to copy image data to clipboard as bitmap data (image/png, image/jpg).

What went wrong?
Clipboard does not support writing bitmap data to the clipboard. 

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: OS X 10.11
Flash Version: Shockwave Flash 27.0 r0

Writing to the clipboard has valid security concerns, https://w3c.github.io/clipboard-apis/#writing-to-clipboard

We know that. But when the user is on a site that allows them to create images (memes) and they want to share those to imgur or gmail that both support pasting of image data we need to offer a second clipboard option: Show a permissions prompt, "Allow Write to Clipboard?"

The user then grants permission on a per site or per session basis. A new method may be
 
Components: Blink>DataTransfer
Labels: Needs-Milestone

Comment 3 by jsb...@chromium.org, Jan 29 2018

Mergedinto: 150835
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment