← Back to release summary

Allow JS-triggered copy/cut with a user gesture

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 43)
Intent stage
None

Summary

execCommand("copy") and execCommand("cut") should be allowed to modify the system clipboard in the context of a user gesture (the spec uses the language "allowed to show a popup").

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/document.execCommand http://updates.html5rocks.com/2015/04/cut-and-copy-commands

Samples: http://jsbin.com/yanamebope/quiet https://github.com/GoogleChrome/samples/tree/gh-pages/cut-and-copy

View on chromestatus.com