Closed Bug 1156273 Opened 9 years ago Closed 9 years ago

Inconsistent behavior of <input type="file" accept="… attribute with certain MIME type combinations

Categories

(Core Graveyard :: File Handling, defect)

37 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1155154

People

(Reporter: u537154, Assigned: arnaud.bienner)

References

()

Details

(Keywords: testcase)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.17

Steps to reproduce:

Firefox 37.0.1 Windows/Mac

Case 1: <input type="file" accept="application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document">

Case 2: <input type="file" accept="application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document">


Actual results:

Case 1: I can only select *.docx files
Case 2: I can select *.pdf, *.doc and *.docx files


Expected results:

Case 1: I can select *.doc and *.docx files
Case 2: I can select *.pdf, *.doc and *.docx files
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150420030204

Confirmed.
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Keywords: testcase
OS: Mac OS X → All
Product: Firefox → Core
Hardware: x86 → All
See Also: → 1155154
Summary: Inconsistent support of input[type=file] accept attribute → Inconsistent behavior of <input type="file" accept="… attribute with certain MIME type combinations
Component: DOM: Core & HTML → File Handling
Jonas, who owns the accept stuff now?
Flags: needinfo?(jonas)
No idea.

Adding Arnaud and Olli who have written patches and reviewed code here lately.
Flags: needinfo?(jonas)
Flags: needinfo?(arnaud.bienner)
Probably linked to bug 1155154 and bug 1183668.
Assignee: nobody → arnaud.bienner
Status: NEW → ASSIGNED
Flags: needinfo?(arnaud.bienner)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.