[meta] Implement the |downloads| extension API
Categories
(GeckoView :: Extensions, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: agi, Unassigned)
References
(Depends on 13 open bugs, Blocks 2 open bugs)
Details
(Keywords: meta, Whiteboard: [geckoview:m78] [geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82][geckoview:m83][geckoview:m84] [geckoview:2023?])
The browser.downloads
API is broken right now in GeckoView because it tries to request some android permissions using the Fennec-only (I'm assuming) DownloadCore.jsm
.
In particular it uses shouldBlockForRuntimePermission
: https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/toolkit/components/downloads/DownloadCore.jsm#421
We should just delegate this to the app. This is important because I think it's the only way that we have to save files from a web extension.
Comment 1•6 years ago
|
||
We will need this functionality for extensions that create files like screenshots.
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Mass moving bugs to the Extension component.
Updated•6 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
![]() |
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
![]() |
||
Updated•5 years ago
|
![]() |
||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
GeckoView has implemented some parts of the downloads API, but it isn't actually hooked up with Android-Components (and by extension not available in Fenix). This is a feature request for the functionality: https://github.com/mozilla-mobile/fenix/issues/16585
Comment 6•3 years ago
|
||
Tentatively set this bug's priority to P2 so we review it for GV's 2022 H2 planning.
Updated•3 years ago
|
Comment 7•3 years ago
|
||
This bug is still relevant.
Updated•3 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•9 months ago
|
||
Hi. I work on Video DownloadHelper extension (2M users).
And I'd like to make the extension available to our users on Firefox Android (and even advertise Firefox for Android to our Desktop users).
But we need browser.downloads.download
(downloading an internal blob URL), and optionally .show()
or .showDefaultFolder()
.
Anyway I can help with this? I can work on a patch myself if that helps (I worked on patches for Firefox Android before) as long as I have a clear understanding of what Mozilla is willing to accept as a patch (I've read the attached doc).
WebDriver BiDi also specifies two events around downloads: downloadWillBegin
and downloadEnd
.
Whatever is implemented here for the webextension API would probably be useful for us as well.
Description
•