Project

General

Profile

Actions

Feature #565

open

See if it is possible to download a file contained in a blob.

Added by Philippe Monroux about 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
3.x
Start date:
05/03/2020
Due date:
% Done:

0%

Estimated time:

Description

la page :

https://media.interieur.gouv.fr/deplacement-covid-19/

génère un fichier PDF que l'on doit pouvoir enregistrer dans la mémoire du téléphone. Avec privacy browser on ne peut pas l'enregistrer car cela signale "invalid url" dans la boîte de dialogue de l'enregistrement du fichier

Actions #1

Updated by Soren Stoutner about 3 years ago

I do not speak the language this is written in (perhaps French?). Can you please repost it in English?

Actions #2

Updated by Pure Incompetence about 3 years ago

Translation from deepl.com/translate :

The Webpage
https://media.interieur.gouv.fr/deplacement-covid-19/
generates a PDF file that you should be able to save in the phone memory. With privacy browser it cannot be saved because it signals "invalid url" in the file saving dialog box.

Actions #3

Updated by Soren Stoutner about 3 years ago

  • Subject changed from impossibilité d'enregistrer un fichier PDF généré par une page web to Files contained in blob's instead of normal URLs cannot be downloaded.
  • Status changed from New to Closed

The problem is caused by the poor website design, which attempts to contain the PDF in a blob, as can be seen in the generated URL: blob:https://media.interieur.gouv.fr/.

Android's WebView doesn't provide any way to turn a blob into a file (this is really poor web design). As such, any browser based on WebView will not be able to download this file. For example, Lightning attempts to download the file, but nothing happens. FOSS Browser crashes if the download is attempted.

Actions #4

Updated by Soren Stoutner about 3 years ago

  • Subject changed from Files contained in blob's instead of normal URLs cannot be downloaded. to Files contained in blobs instead of normal URLs cannot be downloaded.
Actions #5

Updated by Soren Stoutner almost 3 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Files contained in blobs instead of normal URLs cannot be downloaded. to See if it is possible to download a file contained in a blob.
  • Status changed from Closed to New

It should be possible to extract the URL, but I don't know if it will work in the case of this specific website unless it contains more than just the domain name.

Actions #6

Updated by Soren Stoutner over 2 years ago

At a minimum, this will become possible with the release of Privacy WebView in the 4.x series. But it might be possible to extract this information from DOM storage somehow.

Actions #7

Updated by Anonymous about 2 years ago

I have faced the same error in "Snapdrop" (https://github.com/RobinLinus/snapdrop).

I made some tests, too.

A lot of browsers in the F-Droid store seem to have similar problems with this type of download; in short, they can't download the files.

But... It works just fine with the Android versions of Firefox & Chrome.

Actions #8

Updated by Soren Stoutner about 2 years ago

Firefox and Chrome (and browsers based on them) can download blobs because they can walk the DOM tree and extract the blob. But Android's System WebView does not expose the DOM in the same way, so browsers that are based on WebView, like Privacy Browser and a number of other browsers on F-Droid, cannot download blobs.

Actions

Also available in: Atom PDF