Closed Bug 1616853 Opened 5 years ago Closed 5 years ago

<input type=file accept=image/jpeg> should allow camera capture

Categories

(Firefox for Android Graveyard :: General, enhancement)

Firefox 68
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: maghoff, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

Click "Browse" on a file input with accept="input/jpeg": <input type=file accept="image/jpeg">

Actual results:

A file browsing UI opened, allowing me to pick from existing photos and images on the phone

Expected results:

I should be offered the choice between taking a new photo with the camera or picking from existing photos.

This expected behavior is how it works in Chrome for Android. Perhaps more interestingly, this is also how it works in Firefox if I add PNG to the accept list. So, for <input type=file accept="image/jpeg, image/png">, I do get the choice to take a new photo with the camera. This is backwards: JPEG is the more likely format to get from the camera.

This is not something we will improve in Fennec at this point. I've moved this bug to Fenix. I'm not sure how things work there, but that is the proper place now to hae this on file.

https://github.com/mozilla-mobile/fenix/issues/8711

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → MOVED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.