Closed Bug 703500 Opened 13 years ago Closed 13 years ago

Cannot drop file to <input type="file"/> if drop event is called stopPropagation()

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file, 1 obsolete file)

You cannot drop file to the file input control in the URL.
Attached patch Patch (obsolete) — Splinter Review
I don't know how to drop a file by synthesized event...
Attached patch PatchSplinter Review
Attachment #575388 - Attachment is obsolete: true
Attachment #576860 - Flags: review?(bugs)
Comment on attachment 576860 [details] [diff] [review]
Patch

Thanks for doing this event-listener-systemifying.

This needs tests, I think.
(Unfortunately writing dnd tests is quite painful.)
Attachment #576860 - Flags: review?(bugs) → review+
smaug:

Do you know some examples for the tests?

* I don't know how to write the dnd test with file.
* I don't know how to get the bounding rect of native anonymous elements (text edit field and button).
Smaug: See above comment.
https://hg.mozilla.org/integration/mozilla-inbound/rev/fa2abb5852bd

landed without tests since I don't have idea for creating them, see comment 4.
Whiteboard: [inbound]
Target Milestone: --- → mozilla11
Flags: in-testsuite?
https://hg.mozilla.org/mozilla-central/rev/fa2abb5852bd
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: