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)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 912492

People

(Reporter: jwatt, Unassigned)

References

Details

Attachments

(1 file)

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.
Attached patch patchSplinter Review
Attachment #813959 - Flags: review?(bugs)
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
Attachment #813959 - Flags: review?(bugs)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: