Closed Bug 1511083 Opened 6 years ago Closed 3 years ago

Firefox 63.0.2 for Android 8.1 Filereader.readAsDataURL() error with NS_ERROR_FILE_TARGET_DOES_NOT_EXIST

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P2)

defect

Tracking

(firefox65 wontfix, firefox66 fix-optional, firefox67 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox65 --- wontfix
firefox66 --- fix-optional
firefox67 --- affected

People

(Reporter: phuongtrang.doan, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce:

in my responsive website, i have a function to take photo which is init by <input type="file" capture/>. 

Tested on Firefox (fresh install from Google Play Store) for Android with 2 cases:
1. Case 1:
- Android 8.1
- Firefox version: v63.0.2

2. Case 2:
- Android 7+
- Firefox version: v63.0.2

After facing the issue, I've tried 2 demos from MDN & mozilla developers on Firefox for Android 8.1, all failed

https://mdn.mozillademos.org/files/3699/crossbrowser_image_preview.html

https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL




Actual results:

Result after testing :

1. Case 1:
- Browser able to open mobile camera, snap photo
- However, when website tried to load image for previewing using FileReader. readAsDataURL(), it just hanged there.
- After some several attempts to remote debugger on, i got error exactly at the line where FileReader.readAsDataURL with code NS_ERROR_FILE_TARGET_DOES_NOT_EXIST

2. Case 2: 
- Browser able to open mobile camera, snap photo
- Website can load photo for previewing successfully

I attached the error image (through remote debugger) when I tried the demo from https://mdn.mozillademos.org/files/3699/crossbrowser_image_preview.html 


Expected results:

In any case, should be able to take photo & load photo preview succesfully.

I'm also experiencing this issue, but only on some devices, here is a list of what does and doesn't work.

Device Android Version Firefox Version Outcome
Samsung Galaxy Tab S4 8.0.0 64.0.1 Doesn't work
Samsung Galaxy Tab S3 7.0.0 64.0.1 Works
Samsung Galaxy Tab 4 10.1 4.4 64.0.1 Works
Sony Xperia XA1 8.0.0 64.0.2 Doesn't work
Nexus 6 6.0.0 64.0.1 Works
Motorola E 4G 2014 7.1.2 64.0.2 Works

To be clear when I say above in the table that it doesn't work, I mean I get the NS_ERROR_FILE_TARGET_DOES_NOT_EXIST exception thrown. This only happens when selecting the camera option, the existing image file option works on every device.

I basically followed the steps in Case 1 (in the parent comment).

Over on Github, an issue was reported to the browser compat data repository mentioning that this is still occurring in version 66. Based upon the description and the first comment, Android 8.x is a common factor, but one's a fluke, two's a coincidence, and three's a pattern. I've requested information about what device @antonholmbergmi is using when they receive the error on their own device -- if they're using Android 8.x as well, I think we can safely diagnose this is an issue on Android 8.x.

Their response confirms that this is indeed an Android 8.x bug.

Does this still happen with Nightly 67?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(vinyldarkscratch)

Can confirm that this is still an issue in Nightly 67. Just downloaded a fresh copy of both Firefox (65.0) and Firefox Nightly (67.0a1) on an Alcatel Tetra (5041C) running Android 8.1.0.

Flags: needinfo?(vinyldarkscratch)

I saw on Github (https://github.com/mdn/browser-compat-data/issues/3342#issue-404191582) that this issue was fixed. May I ask if FF Android app version 68 includes the fix or not?

We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: