Closed
Bug 1347992
Opened 9 years ago
Closed 9 years ago
Input directory element has empty files list if the path contains special characters
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: thomas, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Steps to reproduce:
Example JSFiddle to reproduce the error:
https://jsfiddle.net/ThomasMichon/hqe0qa8x/
(works in Chrome, not in Firefox)
Create an INPUT element of type="file" and with directory="directory".
Attach a change event listener to the INPUT element, which will read out the list of file names from the HTMLInputElement.files field.
Create a folder on the hard drive named "folder º1". The "º" character is the heart of the issue.
Add a file within the folder named "test.txt". (no special characters)
Click the INPUT element in Firefox.
Select the "folder º1" folder.
Actual results:
The event listener on the INPUT element reads an empty list from the HTMLInputElement.files field.
Expected results:
The event listener on the INPUT element should read the "text.txt" file from the HTMLInputElement.files field.
I can't reproduce it with FF55. Fixed by bug 1331820:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=8ff550409e1d1f8b54f6f7f115545dbef857be0b&tochange=b772206648a0a52b7cfe812a8258ddc84151985e
I see you reported the bug against FF55, are you sure? If not, could you update Nighty 55 to the latest build and test again. It should be fixed.
| Reporter | ||
Updated•9 years ago
|
Version: 55 Branch → 52 Branch
| Reporter | ||
Comment 2•9 years ago
|
||
@Loic this is actually against Firefox 52, I just noticed. Apologies for the confusion.
In that case, the bug is already fixed in 54+.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(thomas)
Resolution: --- → FIXED
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•