Open Bug 1782633 Opened 3 years ago Updated 3 years ago

dragend event should not make dataTransfer content available (from the drag datastore )

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

Firefox 105
defect

Tracking

()

Tracking Status
firefox105 --- affected

People

(Reporter: karlcow, Unassigned)

References

(Depends on 1 open bug)

Details

This comes up during a discussion on https://bugs.webkit.org/show_bug.cgi?id=243374

Steps to reproduce

  1. Go to https://jsfiddle.net/3vjnqdmw/show
  2. Drag and Drag [Select this element...] into [Drop Zone]

Actual:
Status: Drop done
Data is: source

Expected:
Status: Drop done
Data is: empty

Summary:

On Chrome and Safari, the

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.

Depends on: 1710866
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.