Docs unclear on whether unlimitedStorage can be an optional permission


(Pikadude No. 1) #1

This part of the docs specifies what permissions cannot be optional permissions, and it doesn’t include unlimitedStorage:

But this part of the docs specifies permissions can be optional permissions, and unlimitedStorage isn’t there, either:

So, does Firefox allow it or not? (If you know it does not, I’d appreciate you filing a bug.)


(Martin Giger) #2

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/optional_permissions#Browser_compatibility lists all permissions that can be optional in Firefox at this time. There is https://bugzilla.mozilla.org/show_bug.cgi?id=1458585 as a generic kind of metabug I guess.

Note that permissions that are listed in the “permissions” section are not excluded from being optional. Optional permissions are a subset of all permissions you can require.