Clipboard API - possible to overwrite mime types (with setData) on `paste` event

Issue #14038089 • Assigned to Steven K.

Details

Author
Krzysztof K.
Created
Oct 2, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Standard affected
Clipboard API and events

Found in build #
16.16257
Reports
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

According to specs, on both drop and paste events the dataTransfer store should be in readonly mode:

also it works this way in all other major browsers (Chrome, Firefox, Safari). However, in Edge the behaviour is quite different and it is possible to set/overwrite dataTransfer store mime types on paste event (see demo - https://jsfiddle.net/859hfs37/10/).

There are two issues here (both can be reproduced on the above demo):

  • Possible to overwrite existing (in dataTransfer store) mime type on paste event.
  • When setting non-existing mime type, other ones will be cleared/emptied, e.g. setting text/html on paste will make text/plain empty.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in