Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Fenix should use Gecko's downloading streaming API instead of the Android manager #1657

Closed
chutten opened this issue Apr 16, 2019 · 15 comments
Closed
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Download P2 Upcoming release
Milestone

Comments

@chutten
Copy link

chutten commented Apr 16, 2019

Steps to reproduce

  1. Visit https://ebookclub.tor.com/ and provide an email address to prove you've signed up (sorry, the download's behind an account. Maybe other downloads are similarly affected, I don't know.)
  2. Download the .epub edition of Cory Doctorow's "Walkaway"

Expected behavior

  1. The download completes properly and is about 1.36MB in size.
    (This is what happens when I do this with Firefox for Android Beta)

Actual behavior

  1. The download "completes" at 25.79KB, and is an invalid file

Device information

  • Android device: Samsung Galaxy A5
  • Fenix version: 1.0.1916 build#11051220 68.0a1-20190408104625

┆Issue is synchronized with this Jira Task

@chutten chutten added the 🐞 bug Crashes, Something isn't working, .. label Apr 16, 2019
@kbrosnan
Copy link
Contributor

If you poke at the file with a text editor is it something text based (html, etc) or binary?

@chutten
Copy link
Author

chutten commented Apr 16, 2019

*copies it off of the device*

Oh, look, it's the HTML of the download page. Interesting.

@vesta0 vesta0 added this to the Bugs milestone Apr 16, 2019
@vesta0
Copy link
Collaborator

vesta0 commented Apr 16, 2019

@cpeterso does this sound like a GV bug and do we have one filed for it?

@cpeterso
Copy link

We have some Fennec bugs about file downloads, but I filed a new GV bug for this STR: https://bugzilla.mozilla.org/show_bug.cgi?id=1544955

@pocmo
Copy link
Contributor

pocmo commented Apr 17, 2019

Could be caused by us not forwarding GV cookies to the download manager?

@vesta0 vesta0 added needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org P1 Current sprint labels Apr 23, 2019
@vesta0 vesta0 added the needs:ac Needs Android Component Work label Apr 30, 2019
@cpeterso
Copy link

cpeterso commented May 3, 2019

Could be caused by us not forwarding GV cookies to the download manager?

Yes. Fenix is using the Android download manager instead of Gecko and the Android download manager doesn't have the user cookies (as suggested in GV bug https://bugzilla.mozilla.org/show_bug.cgi?id=1476364).

@snorp thinks Fenix should use Gecko's downloading streaming API instead of the Android manager.

@cpeterso cpeterso removed the needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org label May 3, 2019
@vesta0 vesta0 added this to 🐉 Fenix Backlog in A-C: Android Components Sprint Planning May 6, 2019
@mheubusch mheubusch changed the title Downloading ebook from tor.com failed Fenix should use Gecko's downloading streaming API instead of the Android manager May 7, 2019
@mheubusch
Copy link
Contributor

Since we already removed the download icon from the Quick Action Bar, and if this proves challenging or time-consuming to implement, could we remove the ability to download files altogether for MVP? @vesta0 LMK if you think this is an option.

@vesta0
Copy link
Collaborator

vesta0 commented May 8, 2019

@mheubusch I can't speak to how much engineering work it is to block Fenix from using Android download manager but my recommendation is to keep the basic download functionality (which still covers most use cases) until the GV API is ready.

@vesta0 vesta0 added 🙅 waiting Issues that are blocked or has dependencies that are not ready P2 Upcoming release and removed needs:investigation P1 Current sprint labels May 8, 2019
@snorp
Copy link

snorp commented May 8, 2019

I agree that it's probably best to leave this alone for MVP, but just wanted to clarify that the GV API is mostly ready. You need to make a second request (as Fenix does today), but it will use Gecko's cookies.

@mheubusch
Copy link
Contributor

Thanks @vesta0 - so this is just a use case where we need to supply credentials to a site before initiating the download? I think I understand better now. Thanks for updating the labels and lmk if we should move this out of the Fenix backlog altogether for MVP.

@ekager ekager closed this as completed in cbd811d Aug 3, 2019
A-C: Download Manager automation moved this from In progress to Done Aug 3, 2019
@ekager ekager added this to the v1.3 milestone Aug 14, 2019
@chutten chutten reopened this Feb 12, 2020
@chutten
Copy link
Author

chutten commented Feb 12, 2020

Unfortunately this issue still happens. Downloading the 1.5MB ebook instead results in a 27KB file on disk.

@chutten
Copy link
Author

chutten commented Feb 12, 2020

Fenix version: 200211 06:01 (build 20420611)

@chutten
Copy link
Author

chutten commented Feb 12, 2020

kbrosnan points out that this is probably a dupe of #7531. Let's take it there.

@chutten chutten closed this as completed Feb 12, 2020
@data-sync-user data-sync-user changed the title Fenix should use Gecko's downloading streaming API instead of the Android manager FNX2-17299 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager Aug 4, 2020
@data-sync-user data-sync-user changed the title FNX2-17299 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager FNX3-15716 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-15716 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager FNX-2437 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX-2437 ⁃ Fenix should use Gecko's downloading streaming API instead of the Android manager Fenix should use Gecko's downloading streaming API instead of the Android manager May 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Download P2 Upcoming release
Projects
No open projects
Development

No branches or pull requests