Bug 307601
| Summary: | dataTransfer.types includes "Files" but dataTransfer.files is empty when dragging images from Mail.app | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | joanne_pan2 |
| Component: | New Bugs | Assignee: | joanne_pan2 |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
joanne_pan2
Steps to reproduce:
1. Open an email in Mail.app that contains an inline image
2. Drag the inline image to a web page with a drop zone
3. In the drop event handler, check dataTransfer.types and dataTransfer.files
Expected: If "Files" is in dataTransfer.types, dataTransfer.files should contain the file
Actual: dataTransfer.types is ["Files", "text/html"], but dataTransfer.files.length is 0
Additional observations:
- dataTransfer.items shows only 1 item with kind="string" (the HTML)
- The HTML contains: <img src="blob:null/..." ...> which is inaccessible
- Dragging from Notes.app works correctly (files are accessible)
- This may be related to Bug 217726 https://bugs.webkit.org/show_bug.cgi?id=217726
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/170672606>
joanne_pan2
Pull request: https://github.com/WebKit/WebKit/pull/64312
EWS
Committed 312711@main (9a5dd61958c8): <https://commits.webkit.org/312711@main>
Reviewed commits have been landed. Closing PR #64312 and removing active labels.