Hi Team, Thanks for your continuous effort. I took the example data from below mentioned source and changed it into JSFiddle: JSFiddle Link - https://jsfiddle.net/3vjnqdmw/show Source - http://udn.realityripple.com/docs/Web/API/DataTransfer/clearData Now I experience following bug: *** STEPS TO REPRODUCE *** 1. Open JSFiddle and Run 2. Drag and Drag [Select this element...] into [Drop Zone] >> ACTUAL RESULT: Status: Drop done Data is: empty >> EXPECTED RESULT: Status: Drop done Data is: source _____ Other browsers: Chrome Canary 106 -> same as Safari 15.6 Firefox Nightly 105 -> Show "Expected Result". _______ Thanks for your continuous work, please mark it as duplicate since I am not able to find related bug. Hence, I am filing this.
This isn't really an issue with clearData but rather with dragend event getting dispatched without the drag content.
Created attachment 461328 [details] safari, firefox, chrome console log for event.dataTransfer Firefox Nightly 105.0a1 Google Chrome Canary 106.0.5212.0 Safari 16.0 According to https://html.spec.whatwg.org/multipage/dnd.html#dndevents The drag data store mode is drop -> read-only mode dragend -> protected mode Protected mode. https://html.spec.whatwg.org/multipage/dnd.html#concept-dnd-p > For all other events. The formats and kinds in the drag data store list of items representing dragged data can be enumerated, but the data itself is unavailable and no new data can be added. *data itself is unavailable* So would it be a bug from Firefox?
I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1782633
<rdar://problem/98247037>
I think this is config changed since WebKit's behavior is probably right here.