Closed Bug 1866039 Opened 2 years ago Closed 2 years ago

Input with accept="image/*" does not allow selecting HEIC images

Categories

(Core :: Layout: Form Controls, defect)

Firefox 119
Desktop
All
defect

Tracking

()

VERIFIED FIXED
123 Branch
Tracking Status
firefox122 --- wontfix
firefox123 --- verified
firefox124 --- verified

People

(Reporter: github, Assigned: gregp)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

Create an input element like the following:

<input type="file" name="images" multiple accept="image/*" />

And then try using it to select a file with the .HEIC extension from your local filesystem. (If you don't have one, just rename any file - the file contents don't matter)

Example: https://codesandbox.io/p/sandbox/image-doesnt-include-heic-n34y79

Actual results:

The HEIC images are greyed out and not selectable. (Only tested on macOS 14.1)

Expected results:

HEIC images should be selectable, since they have MIME-type image/heic

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Form Controls' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

The severity field is not set for this bug.
:jwatt, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jwatt)

Can reproduce on Sonoma:

Safari Technology Preview 183: Highlights heic files as selectable for image/* and image/*,image/heic
Firefox Nightly 122 and Chrome Canary 122: Highlights heic files only if image/heic is explicitly specified

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jwatt)
Attachment #9368840 - Attachment is obsolete: true
Assignee: nobody → gregp
Status: NEW → ASSIGNED
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/a09e8b043415 Add .heic to supported accept="image/*" types r=extension-reviewers,emilio,robwu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

I have reproduced this issue in Release v122.0 on a Mac OS 11. The first file input element would not accept a .HEIC image, while the second would. I have verified the fix in Beta v123.0b5 and Nightly v124.0a1. The behavior seen in Windows 10 would also be enhanced because the .HEIC images would not need to be "forced" by choosing the "all file types" from the drop-down anymore.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
OS: Unspecified → All
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: