Closed Bug 1420778 Opened 7 years ago Closed 6 years ago

Download permission should be optional

Categories

(WebExtensions :: General, enhancement, P5)

enhancement

Tracking

(firefox60 verified)

VERIFIED FIXED
mozilla60
Tracking Status
firefox60 --- verified

People

(Reporter: ericjung, Assigned: andy+bugzilla)

Details

(Keywords: dev-doc-complete)

Attachments

(3 files)

A lot of addons are using browser.downloads.download() to export settings to a user's local filesystem. However, many users will never export. The "downloads" permission should be optional and requested when needed.
Priority: -- → P5
Assignee: nobody → amckay
As per chat in IRC, here's an attached image that downloads works as an optional permissions.
Comment on attachment 8957023 [details]
bug 1420778 make downloads permissions optional

https://reviewboard.mozilla.org/r/225990/#review231878
Attachment #8957023 - Flags: review?(aswan) → review+
Keywords: checkin-needed
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1b781bef18f0
make downloads permissions optional r=aswan
Keywords: checkin-needed
Keywords: dev-doc-needed
https://hg.mozilla.org/mozilla-central/rev/1b781bef18f0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Attached image Bug1420778.gif
This issue is verified as fixed on Firefox 60.0a1 (20180309003239) under Windows 7 64-bit and Mac OS X 10.13.2.

The "downloads" and "downloads.open" can be requested as optional permissions.

Please see the attached video.

I also filed a bug on addons-linter to update the API schema: https://github.com/mozilla/addons-linter/issues/1893
Status: RESOLVED → VERIFIED
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: