HTML upload from Camera yields 0-length file on Moto phones
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox64 wontfix, firefox65 wontfix, firefox66 wontfix, firefox67 wontfix, firefox68 verified, firefox69 fixed)
People
(Reporter: tim, Assigned: petru)
References
Details
Attachments
(1 file, 1 external file)
|
338.61 KB,
image/png
|
Details |
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 4•7 years ago
|
||
I am able to reproduce this on an LG G7 ThinQ with Android 8.0.0 on Firefox for Android 64.0.2. If I use the camera as the source then the file input is never updated and the change event never fired. If I select an existing file from disk then the file input behaves correctly.
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=0" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function() {
$('#photoInput').on('change', function() {
var message = new Date().toLocaleTimeString();
$('#output').text(message);
});
});
</script>
</head>
<body>
<input id="photoInput" type="file" />
<h1 id="output"></h1>
</body>
</html>
Comment 5•7 years ago
|
||
Tim, great bug report, thank you. Can you check if this is still happening with Nightly 66? It is too late to fix this in 64 but we could try for 66.
Mirabela, do you have an LG phone to try this on?
Updated•7 years ago
|
The bug still exists on Nightly 66.0a1 on the Moto G6 Plus (Oreo). FYI, this bug is not seen on an LG G4 (Lollipop), so it's not all LG phones.
Comment 7•7 years ago
|
||
Hi Liz,
I have tested on an LG G4 (Android 5.1) on the latest Nightly 66.0a1 (2019-01-15), but I was not able to reproduce the issue.
We do not have another LG phone, unfortunately.
Thank you!
Hello everyone,
This issue seems to also exist on Huawei Mate 10 (running Android 8.0.0) but not on Samsung Galaxy S8 (running 8.0.0). I have also noticed, that when ever the uploaded file comes directly from camera, it raises "NS_ERROR_FILE_TARGET_DOES_NOT_EXIST" in the remote debugger when the input file is broken. Both versions, the stable 65.0 and 67.0a1 Nightly won't work on the Huawei device.
Also I might add that it is not only images that are causing issues, but videos also uploaded directly from Camera apps to <input type="file" accept="video/*">. In our case, there are no issues in firing the change event, but the uploaded file being 0-length.
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 10•7 years ago
|
||
Handle the case when Camera would actually save a new photo but would return
just a thumbnail and not the full image
https://github.com/aosp-mirror/platform_packages_apps_camera/blob/33c59af04ab44eff0e3806f140d472252300646a/src/com/android/camera/PhotoModule.java#L1345-L1371
| Assignee | ||
Updated•7 years ago
|
Comment 11•7 years ago
|
||
Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/58dd65c6aa95
Return the generated file if the camera result has "inline-data" action; r=VladBaicu
Comment 12•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 9067015 [details]
Bug 1511839 - Return the generated file if the camera result has "inline-data" action; r?VladBaicu
Beta/Release Uplift Approval Request
- User impact if declined: On some devices camera upload is not possible.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: On a previously affected Motorola device:
- access http://tln.rqa-services.com/ffmotobug
- press
Browse - select
Camera - take photo and press done
- confirm that the image name has appeared in the webpage and after pressing
Uploadyou see the right size of the just uploaded file.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Not risky because of the minor code change. Added another way of providing the image from the
Camerafor a specific edgecase. Everything else should work as before. - String changes made/needed:
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 14•7 years ago
|
||
Comment on attachment 9067015 [details]
Bug 1511839 - Return the generated file if the camera result has "inline-data" action; r?VladBaicu
fennec camera upload fix, approved for 68.0b5
Comment 15•7 years ago
|
||
| bugherder uplift | ||
Comment 16•7 years ago
|
||
Hi,
I tested the issue with 2 devices - device 1: Samsung Galaxy S9 with Android (8.0.0) and builds: Firefox Nightly 68.0a1(2019-05-28) and Firefox Beta 68.0b5; device 2: Motorola Moto G4 with Android(6.0.1) and builds Firefox Nightly 68.0a1(2019-05-28) and Firefox Beta 68.0b5.
I will mark this ticket as resolved-verified as the issue does not reproduce.
Thanks,
Diana
Updated•7 years ago
|
Comment 17•7 years ago
|
||
Due to comment 16, I'll remove the qe-verify flag, thanks.
Updated•5 years ago
|
Description
•