New issue
Advanced search Search tips

Issue 646941 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

File picker for input element with "accept" attribute does not properly filter .zip

Reported by mark.rus...@workiva.com, Sep 14 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce the problem:
1. Open up attached html document (just an input element with the accept=".zip" attribute) in OS X
2. Click "Choose File" to open the file picker
3. Navigate to a folder with a .jar file. You are incorrectly able to click it.

What is the expected behavior?
.jar files should be greyed out in file picker when not allowed by the file input element.

What went wrong?
Not sure what is going wrong, but this works in Windows Chrome, and Firefox cross-OS. 

Did this work before? N/A 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 22.0 r0

I've seen other tickets here with odd file picker behavior on OS X so perhaps this has something to do with the Chrome <=> OS file picker interactions
 
file.html
45 bytes View Download
Repro Screenshot.png
177 KB View Download

Comment 1 by rsesek@chromium.org, Sep 15 2016

Components: -UI Blink>Forms>File
Status: Untriaged (was: Unconfirmed)
.jar files are really ZIP files, so it seems like that is somehow confusing the file picker. I tried renaming a .zip to .xyz (non-existent extension) and .apk (zip-by-another-name), and neither had the same effect as .jar. So it seems like .jar is special-cased to be treated as .zip.
Yeah, my first instinct was that it was related to their magic numbers being the same but creating a zero-byte jar using `touch testfile.jar` also triggered this issue.

Thanks!

Comment 3 by tkent@chromium.org, Sep 15 2016

Status: Available (was: Untriaged)
Need to take a look at ui/shell_dialogs/select_file_dialog_mac.mm.

Project Member

Comment 4 by sheriffbot@chromium.org, Sep 18 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by rsesek@chromium.org, Sep 18 2017

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
Project Member

Comment 6 by sheriffbot@chromium.org, Sep 18

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment