| Summary: | dragend event doesn't have dragged content unlike drop event | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> | ||||
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||
| Severity: | Normal | CC: | ap, bfulgham, karlcow, rniwa, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | Mac (Apple Silicon) | ||||||
| OS: | macOS 12 | ||||||
| URL: | https://jsfiddle.net/3vjnqdmw/show | ||||||
| Attachments: |
|
||||||
|
Description
Ahmad Saleem
2022-07-30 10:49:51 PDT
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 think this is config changed since WebKit's behavior is probably right here. |