New issue
Advanced search Search tips

Issue 855943 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

File chooser filter specified by <input accept> can be overridden by userr

Reported by stu...@anchev.net, Jun 24 2018

Issue description

Chrome Version       : 67.0.3396.62
OS Version: openSUSE Leap 42.3
URLs (if applicable) : https://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_input_accept
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari:
    Firefox:
    IE/Edge:

What steps will reproduce the problem?
1. Visit the URL
2. Click and select non-image file
3. Click and select image file.

What is the expected result?
The result is the same.

What happens instead of that?
Non-images should not be accepted

 
Labels: Needs-Triage-M67
Cc: phanindra.mandapaka@chromium.org
Components: Blink>Image
Labels: Needs-Feedback Triaged-ET
As per comment #0 we have tested this issue on reported chrome version 67.0.3396.62 and latest chrome stable 67.0.3396.87 using Linux 17.10. Attaching screen-cast for reference.
Steps:
--------
1. Launched chrome
2. Navigated to given URL ""https://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_input_accept""
3. Clicked on browse and selected image and clicked on submit > successfully submitted
4. Clicked on browse and navigated video folder > we have not seen video files to upload
We are able to load only image format files

@Reporter: As we are unable to reproduce the issue from our end. Can you verify this issue with fresh profile that is not having any extensions and apps or reset all the flags. Let us know whether issue still persists..

Thanks.!
855943.webm
6.6 MB View Download

Comment 3 by f...@opera.com, Jun 25 2018

Components: -Blink>Image Blink>Forms>File

Comment 4 by stu...@anchev.net, Jun 25 2018

Here is my screencast. As you can see - all files are visible.

Is it possible that openSUSE's build is somewhat specific in regards to this? I.e. - is there some compile configuration setting which may be affecting this and which openSUSE may have used? If that is the case - I can report to openSUSE's bugzilla. Please let me know.
screencast.ogv
1.3 MB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 25 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

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

Comment 7 by stu...@anchev.net, Jun 26 2018

I cannot open the first link because the site requires javascript and I am not willing to enable it.

Testing with the command from the second link (Example 31) works just like shown on the screenshot.

Comment 8 by tkent@chromium.org, Jun 26 2018

Cc: thomasanderson@chromium.org
Components: UI>Browser>Themes
Summary: KDE-only?: HTML <input> accept Attribute seems to have no effect (was: HTML <input> accept Attribute seems to have no effect)
Labels: TE-NeedsTriageFromHYD
Reporter@ Thanks for the update.

As per comment #4 and #6, this is KDE-specific issue and this setup is not available at TE end to triage further.
Hence adding 'TE-NeedsTriageFromHYD' and requesting Inhouse team to look into this issue and help further.

Thanks..
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
Tested this issue on Debian Rodete with chrome #67.0.3396.62 and stable #67.0.3396.99

Observations:
=============
1. On Clicking on Choose file, by default image files are selected and only displayed image files.
2. If we change the option to All files, it displaying all file types.
3. If we select any non image file and click on submit, it is displaying "pic = non image file name"

Attaching the screen-cast for reference.

studio@ Could you please confirm this is the issue, you are facing ?



855943.mp4
1.6 MB View Download
> studio@ Could you please confirm this is the issue, you are facing ?

No. As seen on my video regardless of the accept="image/*" the filter dropdown shows "All Supported Files" (including non-images).
Project Member

Comment 12 by sheriffbot@chromium.org, Jul 3

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -TE-NeedsTriageFromHYD M-69 Target-69 FoundIn-69 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Debian Rodete, Windows and Mac 10.13.4 with stable #67.0.3396.99, Canary #69.0.3488.0 and also on earlier version M60-#60.0.3072.0
This is a non-regression issue, hence marking it as untriaged.

Requesting the dev team to look into this issue.

Attaching the screen-cast for reference.
855943-M60.mp4
741 KB View Download
Labels: -M-69 -Target-69 -Needs-Triage-M67
Status: Available (was: Untriaged)
Summary: KDE-only: HTML <input> accept Attribute seems to have no effect (was: KDE-only?: HTML <input> accept Attribute seems to have no effect)
Summary: File choose filter specified by <input accept> can be overridden by user (was: KDE-only: HTML <input> accept Attribute seems to have no effect)
The summary is misleading; the accept attribute restricts the initial filter presented in the file picker. What it doesn't do is prevent the user from changing the filter. This applies to all of Linux/Mac/Win.

Safari: filters to image files, no option to show all file types
Firefox: filters to image files, but user can change option (mac/win/linux)
Chrome: filters to image files, but user can change option (mac/win/linux)
Edge: doesn't filter at all

It sounds like the reporter is interested in matching Safari behavior, but that seems somewhat user-hostile.
Summary: File chooser filter specified by <input accept> can be overridden by userr (was: File choose filter specified by <input accept> can be overridden by user)

Sign in to add a comment