Contact emails
Spec
Summary
The new asynchronous clipboard API makes use of DataTransfer objects and has a need to be able to construct new ones.
For example (with new clipboard api):
var data = new DataTransfer();
data.items.add("\(°o°)/", "text/plain");
navigator.clipboard.write(data).then(function() {
console.log(“Copied to clipboard successfully! ᕕ( ᐛ )ᕗ”);
}, function() {
console.error(“Unable to write to clipboard. (╯ಠ_ಠ)╯︵ ┻━┻”);
});
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Interoperability and Compatibility Risk
This feature is part of the Async Clipboard API discussion, which has received positive feedback from FF/Edge/Safari and web developers.
For this specific feature, various FF developers were involved in discussions when updating the HTML spec to include this:
Interop risk is low since this is simply adding a constructor to the DataTransfer object. No other changes to DataTransfer are included.
OWP launch tracking bug
Entry on the feature dashboard
Changelist