Fenix: FNX3-16425 ⁃ [Bug] Blob downloads - Can't download certain file type

Created on 16 May 2019  ·  34Comments  ·  Source: mozilla-mobile/fenix

Steps to reproduce

  1. When trying to download .conf file, I am getting Firefox Preview can't download this file type

Expected behavior

Actual behavior

Device information

  • Android device: Huawei P20 Lite
  • Fenix version: 1.0.1920

File types mentioned in this issue:

  • .conf
  • .cert
  • .pdf
E5 Download P2 S1 engverified 🐞 bug

Most helpful comment

@vesta0 FYI, in France, with the lockdown, we need to have a form ( https://media.interieur.gouv.fr/deplacement-covid-19/ ) on our cell. When generating it, it fails with Fenix because of this bug.
Can we reconsider this triage? thanks

All 34 comments

Thanks for reporting this @nikoloskid could you provide steps to reproduce? Are you downloading from a authenticated site (requiring login)?

@sv-ohorvath please let us know if you can re-produce this.

I've downloaded 2 types: .conf and .config files from an email, no problems downloading from there.
devices: Huawei P20 lite (Android 9), Galaxy S8 (Android 9).
@nikoloskid If you're still experiencing this problem, please give us more details and reopen the bug. Thank you!

This problem still happens on the latest Fenix from Playstore (build #12700628), here's how you can reproduce it:

EDIT: I'm running more tests, and it seems to be a problem that only happens with Fenix + Mega:

Oh, all downloads that aren't working on Fenix will work fine on Chrome mobile and on Firefox for Linux.

I encountered this bug when trying to download a .conf file from Mullvad. It was my generated wireguard config.

This is also happening for files on Mega, as reported at https://webcompat.com/issues/41768

This link can be saved fine in Fennec, but Fenix rejects it: https://mega.nz/#!j7x0wQDR!j7YAxYNDxILDgpdpZaQrEIC_SphjObeyaG54BU4J-V8

QA can you verify this is still happening?

QA can you verify this is still happening?

Yes, still happens.

EDIT: my latest update from playstore is from 10/30/2019, I guess there's a new release I didn't got yet?

@evertonstz I believe this is fixed in our nightly & beta build :)

Still reproducing on Nightly 191113. Can't download the files evertonstz and wisniewskit shared here.
Devices: Pixel (Android 10), Mi 4i (Android 5.0.2).

I get this trying to download PDF statements from my bank (tsb.co.uk) :/

Just my observations, but the commonality between these issues seems to be that these files are generated in JS, rather than being downloaded directly. For example, my wireguard configuration file is generated by JS as it contains sensitive information not uploaded to the remote server. That wallpaperflare.com link performs download using

            canvas.toBlob(function(blob){
                saveAs(blob, 'wallpaperflare.com_wallpaper.jpg',"image/jpeg");
            },"image/jpeg",1);

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1501735

EDIT: Hmm, I suppose that was fairly obvious to any Mozilla devs in here. Sorry!

This is happening to me right now when attempting to download JPEGs generated on the fly by Nintendo, here: https://switch.nintendo.com/year-in-review/

This is with Firefox Preview 3.0.1.

I was trying to export my Spotify playlist to a text (.txt) file using https://www.playlist-converter.net/ on Firefox Preview 3.2.0. (Build #20200123180644). Firefox Preview was unable to download this file type.

In my testing so far with all the links above, as @ripdog also mentioned, all these sites generate blob URLs and GeckoView explicitly does not handle non-http or https requests right now.

A-C tracking bug:

  • https://github.com/mozilla-mobile/android-components/issues/1159

GV tracking bugs:

  • https://bugzilla.mozilla.org/show_bug.cgi?id=1501735
  • https://bugzilla.mozilla.org/show_bug.cgi?id=1432949

This bug can also be reproduced in "firefox send" with simple .txt files.

The Firefox Send issue is #3336.

I get this trying to download PDF statements from my bank (tsb.co.uk) :/

Same problem. Although I can navigate through my bank site with Fenix, when I try to download a PDF, it downloads a Null PDF file, which can't be opened with Acrobat Reader nor any other software. The problem does not happen with Chrome or New Microsoft Edge.

Might be compatibility issues?

Nexus 6P with Android 8.1.0 & Firefox Preview 4.1.0

PDF Null Download

Corrupt PDF

@vesta0 FYI, in France, with the lockdown, we need to have a form ( https://media.interieur.gouv.fr/deplacement-covid-19/ ) on our cell. When generating it, it fails with Fenix because of this bug.
Can we reconsider this triage? thanks

@vesta0 FYI, in France, with the lockdown, we need to have a form ( https://media.interieur.gouv.fr/deplacement-covid-19/ ) on our cell. When generating it, it fails with Fenix because of this bug.
Can we reconsider this triage? thanks

An issue has even been open about this specific use case : https://github.com/mozilla-mobile/fenix/issues/9735

(We have at least 3 dupes from webcompat.com so far, we'll keep duping them against #9735)

I can also reproduce this with the pkpass files you get from DHL when buying a packet stamp.

Firefox Preview
Nightly 200422 16:13 (Build #21131617)
39.0.20200422145552, 1ee8c073e
GV: 77.0a1-20200422093542
AS: 0.57.0

I encountered the same issue, but with the same file.
Works well from standard url, but have this message when from blob source.

Maybe the mega and other issues are coming from that?

EDIT: Maybe related to https://github.com/mozilla-mobile/android-components/issues/1159

Taking a look at the files from this comment, and they are blob filetypes, so they can be duped to this bug.

I looked through a few of these links, and for all the ones I tried, the filetype is "blob" when downloading them on Desktop.

The underlying GV issue mentioned here has been resolved.

Oh, I realize that I duped this to the AC bug - reopening so this can be QA-ed on Fenix. cc @kglazko

QA, this should have landed in Nightly - for STR, take a look at the sites listed here and in the AC issue: https://github.com/mozilla-mobile/android-components/issues/1159

Thank you, Chenxia! QA, please note there are some known issues that are being discussed here: https://bugzilla.mozilla.org/show_bug.cgi?id=1432949#c14

Now we have support for blob URLs. QA please help us to verify if these websites are working as expected.

Verified as fixed on the latest Nightly build 5/21, checked most of the linked closed bugs (where the specific link was still available).
Devices: Samsung Galaxy Note 10 (Android 10), Motorola Nexus 6 (Android 7.1.1), Huawei MediaPad M2 (Android 5.1.1).

Estimating the Fenix eng effort partially included in this AC issue https://github.com/mozilla-mobile/android-components/issues/1159

Can't download anything from here
https://hdmoviearea.cc/download-the-tale-of-despereaux-full-movie-hindi-480p.html

Download link is not generating....
I tried to report but it is prematurely closed
https://github.com/webcompat/web-bugs/issues/51966

This also happens when trying to download a bin file from a ftp server.
Build# 2015762833
Try downloading either file from this directory: ftp://ftp.dd-wrt.com/betas/2020/09-10-2020-r44340/tplink_archer-c7-v4/

This issue was about a specific method of providing downloads using theblob: protocol and has been resolved.

If you are seeing download issues please test the nightly build if it is still broken in the nightly build open a new issue.

Was this page helpful?
0 / 5 - 0 ratings