[Webkit-unassigned] [Bug 194921] New: insertFromPaste InputEvent missing pasted files in dataTransfer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 21 14:18:54 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=194921

            Bug ID: 194921
           Summary: insertFromPaste InputEvent missing pasted files in
                    dataTransfer
           Product: WebKit
           Version: Safari 12
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: javan at javan.us
                CC: wenson_hsieh at apple.com

Created attachment 362646

  --> https://bugs.webkit.org/attachment.cgi?id=362646&action=review

File paste. Left: Safari, Right: Chrome

To reproduce: 
1. Copy an image to the clipboard and paste it into a contenteditable element.
2. Inspect the "paste" event and note that it contains the pasted file in its clipboardData.
3. Inspect the "beforeinput" or "input" event and note that its dataTransfer has no files. (The dataTransfer does have text/html with a mostly unusable <img src="blob:…"> element, which may be a separate issue)

Examples:
- Visit https://input-inspector.now.sh/profiles/QVByHqieNlP2I6j0THUr to see example paste data using Safari 12.0.3.
- For comparison, visit https://input-inspector.now.sh/profiles/puEtJKhSeFz3IVNweSf2 to see the same paste in Chrome 72.
- Or, view the attached screenshot of both.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190221/57b8b63e/attachment.html>


More information about the webkit-unassigned mailing list