Document which permissions trigger user prompts in the different browsers
Categories
(Developer Documentation Graveyard :: Add-ons, defect, P3)
Tracking
(Not tracked)
People
(Reporter: alexeiatyahoodotcom+mzllbgzll, Unassigned)
References
Details
Comment 1•7 years ago
|
||
Comment 5•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Reporter | ||
Comment 13•6 years ago
|
||
Reporter | ||
Comment 14•6 years ago
|
||
Reporter | ||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Reporter | ||
Comment 17•6 years ago
|
||
Reporter | ||
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Reporter | ||
Comment 20•6 years ago
|
||
Thank you Rob!
Will this fix be backported to ESR 60? I think it should be since we want as few Firefox users using the old, buggy permissions warnings logic as possible before we can release any extension updates that go from "http:///" and "https:///" to "<all_urls>".
Comment 21•6 years ago
|
||
Even if the patch for bug 1504018 was backported, then users who don't update immediately will still be affected by the bug (and see warnings as soon as you release an update).
But you can already publish releases that reach everyone (even those on older versions) by building two versions of your add-on, without new permission warnings, with the following steps:
- Publish version with minimal permissions.
- Publish (higher) version with desired permissions, and set
applications
.gecko.strict_min_version
to 66.0a1 (since bug 1504018 was fixed in 66).
When Firefox 65 or Firefox ESR 60.5 queries for add-on updates, they will be served the first version.
When Firefox 66 or later queries for add-on updates, they will be served the second version.
Example manifests:
manifest.json (publish first):
{ ...
"version": "2019.01.25",
"permissions": [ "https://*/*", "http://*/*" ],
... }
manifest.json (publish second):
{ ...
"version": "2019.01.25.1",
"permissions": [ "https://*/*", "http://*/*", "wss://*/*", "ws://*/*" ],
"applications": {
"gecko": {
"strict_min_version": "66.0a1"
}
},
... }
Above, I increased the version by appending a .1
. If the version numbers are important to you, then you could choose a different version format, such as "2019.01.25+" or "2019.01.25pre" - see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/version
Does this work for you?
Reporter | ||
Comment 22•6 years ago
|
||
Ah, thanks for pointing out this possibility. This would work, but I would really like to avoid the complication of having multiple supported versions in production.
Now that I look at our stats dashboard by browser (https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/statistics/usage/applications/?last=30), we might be OK without ESR having the fix as ESR users make up a small percentage of user base. I think our release strategy (for switching to "<all_urls>") will be to wait until 95%+ of our users are on Firefox 66+.
Don't get me wrong, I would still like this fix to be backported to ESR.
Comment 23•5 years ago
|
||
Reporter | ||
Comment 24•5 years ago
|
||
Looks like unlimitedStorage will no longer prompt users as of Firefox 77: bug 1630413
Comment 25•5 years ago
|
||
Thanks Alexi! We updated our documentation for requesting the right permissions on Firefox Extension Workshop: https://extensionworkshop.com/documentation/develop/request-the-right-permissions/#request-permissions-at-runtime
Description
•