Closed
Bug 923931
Opened 12 years ago
Closed 12 years ago
Clear HTMLInputElement.files immediately after a user picks a directory
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 912492
People
(Reporter: jwatt, Unassigned)
References
Details
Attachments
(1 file)
2.53 KB,
patch
|
Details | Diff | Splinter Review |
Right now when the user picks a directory we leave the HTMLInputElement.files FileList alone until the directory scan completes (potentially many seconds later), and only then overwrite it with the new list of files. I think we should really clear the list as soon as we know that we're going to start building a new file list to avoid content author confusion.
I'm particularly thinking that the extra async activity and delay inherent to directory picking (vs file picking) may mean that authors look at HTMLInputElement.files too early and start reading the old list of files thinking that it's the completed result of the directory picking operation.
![]() |
Reporter | |
Comment 1•12 years ago
|
||
Attachment #813959 -
Flags: review?(bugs)
![]() |
Reporter | |
Comment 2•12 years ago
|
||
Forgot I opened bug 912492 for this. I'll move the patch there.
Assignee: jwatt → nobody
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
![]() |
Reporter | |
Updated•12 years ago
|
Attachment #813959 -
Flags: review?(bugs)
You need to log in
before you can comment on or make changes to this bug.
Description
•