Bug 217726

Summary: Drop event not firing when dragging file from MacOS Mail app
Product: WebKit Reporter: owain
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac   
OS: macOS 10.15   
Attachments:
Description Flags
Example file none

Description owain 2020-10-14 13:02:21 PDT
Created attachment 411366 [details]
Example file

When trying to drag a .eml file from the mail app to a DOM element in Safari 14.0.1 that's listening for drag/drop events, the drop event does not fire as expected (Drop event fires in latest Chrome).

Steps to Reproduce

---------------------------------------------------------------

Safari
- Open Attachment (example.html)
- Open web inspector tool and click on console

#1
- Drag file from desktop to the drop container (DOM element)
- Observe drop event DOES fire.

#2
- Drag .eml file from mail app to the drop container (DOM element)
- Observe drop event DOES NOT fire.


Expected Result: Drop event should fire in scenario #2.
Actual Result: Drop event does not fire at all.

---------------------------------------------------------------

Chrome
- Open Attachment (example.html) in Chrome
- Open web inspector tool and click on console

#1
- Drag file from desktop to the drop container (DOM element)
- Observe drop event DOES fire.

#2
- Drag .eml file from mail app to the drop container (DOM element)
- Observe drop event DOES fire.

Expected Result: Drop event should fire in scenario #2.
Actual Result: Drop event fires correctly.
Comment 1 Radar WebKit Bug Importer 2020-10-14 17:49:03 PDT
<rdar://problem/70315587>