WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
194921
insertFromPaste InputEvent missing pasted files in dataTransfer
https://bugs.webkit.org/show_bug.cgi?id=194921
Summary
insertFromPaste InputEvent missing pasted files in dataTransfer
Javan Makhmali
Reported
2019-02-21 14:18:54 PST
Created
attachment 362646
[details]
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.
Attachments
File paste. Left: Safari, Right: Chrome
(74.10 KB, image/png)
2019-02-21 14:18 PST
,
Javan Makhmali
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-02-21 15:20:55 PST
<
rdar://problem/48292715
>
Ahmad Saleem
Comment 2
2022-05-31 14:59:28 PDT
I am able to reproduce this issue in Safari 15.5 on macOS 12.4 but Chrome Canary 104 does not matches with the attached screenshots in behaviour. In Chrome Canary 104, after pasting - Input remains empty and only "beforeinput" has screenshots details. Firefox Nightly 103 shows data about pasted picture in both "input" and "beforeinput" fields. Thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug