Open Bug 1538348 Opened 2 years ago Updated 5 months ago

[meta] Implement the |downloads| API

Categories

(GeckoView :: Extensions, enhancement)

Unspecified
Android
enhancement
Not set
normal
29

Tracking

(Not tracked)

People

(Reporter: agi, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(Keywords: meta, Whiteboard: [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82][geckoview:m83][geckoview:m84])

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.

We will need this functionality for extensions that create files like screenshots.

OS: All → Android
Priority: -- → P2
Rank: 45

Mass moving bugs to the Extension component.

Component: General → Extensions
Rank: 45 → 29
Whiteboard: [geckoview:m78][fenix:p1]
Summary: The downloads WebExtension API runs fennec-only code → Implement the |downloads| API
Priority: P2 → P1
Assignee: nobody → bugzeeeeee
Whiteboard: [geckoview:m78][fenix:p1] → [geckoview:m78][fenix:p1][geckoview:m79]
Whiteboard: [geckoview:m78][fenix:p1][geckoview:m79] → [geckoview:m78][fenix:p1][geckoview:m79] [geckoview:m80]
Whiteboard: [geckoview:m78][fenix:p1][geckoview:m79] [geckoview:m80] → [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80]
Whiteboard: [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] → [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81]
Depends on: 1655618
Depends on: 1656336
Whiteboard: [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81] → [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82]
Duplicate of this bug: 1330162
Whiteboard: [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82] → [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82][geckoview:m83]
Whiteboard: [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82][geckoview:m83] → [geckoview:m78][fenix:p2][geckoview:m79] [geckoview:m80] [geckoview:m81][geckoview:m82][geckoview:m83][geckoview:m84]
Depends on: 1675391
Depends on: 1675817
See Also: → 1678068
See Also: → 1677356
Depends on: 1680622
Depends on: 1684923
Depends on: 1689442
Priority: P1 → --
Summary: Implement the |downloads| API → [meta] Implement the |downloads| API
Keywords: meta
Depends on: 1694439
Assignee: bugzeeeeee → nobody
You need to log in before you can comment on or make changes to this bug.