Environment
- Browser: Googe Chrome 74.0.3729.131
- OS: macOS High Sierra (10.13.6)
Steps to reproduce
- Right-click and copy a canvas element.
- Open preview image dialog.
- Paste.
Expected result
Clipboard contents get set as new preview image.
Actual result
Message “Sorry, only PNG & JPEG files are supported.” appears.
Background
The code checks only the first of the DataTransferItems: