Closed
Bug 454595
Opened 16 years ago
Closed 16 years ago
textboxes accept any dropped data
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: enndeakin, Assigned: enndeakin)
References
Details
Attachments
(1 file)
803 bytes,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Textboxes should only accept text or text-like dragged data (or files for input type="file"). Right now, code at http://mxr.mozilla.org/mozilla-central/source/editor/libeditor/text/nsEditorEventListeners.cpp#578 is always canceling the dragover event which in new-spec-land means allow a drop.
Assignee | ||
Comment 1•16 years ago
|
||
To reproduce this bug:
1. Drag something that doesn't have text data. For example, in Firefox, the items in the Manage Search Engines list. (Looks like attachments in Thunderbird might do this too, not sure).
2. Drag it onto a textbox. Note that the data seems to be droppable on the textbox even though it shouldn't be allowed.
In the dnd spec, cancelling the dragover event is the way to accept a drop, so we need to ensure that the editor only cancels the event in this case.
Attachment #338121 -
Flags: superreview?(neil)
Attachment #338121 -
Flags: review?(neil)
Updated•16 years ago
|
Attachment #338121 -
Flags: superreview?(neil)
Attachment #338121 -
Flags: superreview+
Attachment #338121 -
Flags: review?(neil)
Attachment #338121 -
Flags: review+
Updated•16 years ago
|
Flags: in-litmus?
Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 2•16 years ago
|
||
i was looking around for the push changeset :) here it is:
http://hg.mozilla.org/mozilla-central/rev/ecb32d66071e
You need to log in
before you can comment on or make changes to this bug.
Description
•