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

RESOLVED FIXED in mozilla11

Status

()

Core
Layout: Form Controls
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: masayuki, Assigned: masayuki)

Tracking

Trunk
mozilla11
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment, 1 obsolete attachment)

You cannot drop file to the file input control in the URL.
Created attachment 575388 [details] [diff] [review]
Patch

I don't know how to drop a file by synthesized event...
Created attachment 576860 [details] [diff] [review]
Patch
Attachment #575388 - Attachment is obsolete: true
Attachment #576860 - Flags: review?(bugs)

Comment 3

6 years ago
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

Updated

6 years ago
Flags: in-testsuite?
https://hg.mozilla.org/mozilla-central/rev/fa2abb5852bd
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in before you can comment on or make changes to this bug.