user event.dataTransfer.clearData in ondragend doesn't allow modifications

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
6 years ago
4 months ago

People

(Reporter: joenix, Unassigned)

Tracking

({html5})

23 Branch
x86
Windows 7
html5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 791800 [details]
dnd-clearData.html

User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

Steps to reproduce:

user event.dataTransfer.clearData in ondragend


Actual results:

Modifications are not allowed for this document


Expected results:

Removes the data of the specified formats. Removes all data if the argument is omitted.
Component: Untriaged → DOM
Product: Firefox → Core
This doesn't look like a security issue to me.
Component: DOM → Drag and Drop
(Reporter)

Updated

6 years ago
Keywords: html5

Comment 2

3 years ago
The actual expected result is that nothing should happen. clearData only has any effect during dragstart. We throw an exception because this was implemented before the spec said much about what to do in this case.
Summary: clearData → user event.dataTransfer.clearData in ondragend doesn't allow modifications
You need to log in before you can comment on or make changes to this bug.