I used to have only very few warnings when releasing new version, now there is 12 warnings complaining about “permissions.request”, which I don’t use in the Android version, only desktop version.
What can we do to mitigate this?
dotproto
(Simeon Vincent)
May 13, 2024, 8:00pm
3
The first thing that leaps to mind is that addons-linter probably shouldn’t be generating warnings for version ranges that you don’t support. Have you set a "strict_min_version" in your browser_specific_settings.gecko_android manifest field?
Thanks!
Yes, I’m using:
"gecko_android": {
"strict_min_version": "115.0"
}
So I’ll guess I’ll report it to the linter repo with some example project .
On another note, the first reply here by “zahrabatool” is a spam bot, you can find many reports here:
https://www.stopforumspam.com/search?q=zahrabatool20019@gmail.com
That page has actually API available, it may be worth to integrate it here .
Actually, it’s already reported .
opened 11:47PM - 12 Mar 24 UTC
### Is this a feature request or a bug?
Bug
### What is the current behavi… or?
From the manifest file, we are setting android as a minimum of 120, however the scanners defaulting to main browser and throwing an error. The API is supported as of 120: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/permissions/request
```
"browser_specific_settings": {
"gecko": {
"id": "jetpackidgoeshere",
"strict_min_version": "115.0"
},
"gecko_android": {
"strict_min_version": "120.0"
}
},
```
```
WARNINGS
permissions.request is not supported in Firefox for Android version 115.0
Warning: This API is not implemented by the given minimum Firefox for Android version
```
### What is the expected or desired behavior?
Linter detects android min version and uses that for checks, this warning should not flag as the API is supported in the minimum defined version for Android. While the above error is technically correct, it shouldnt display if a compatible min android version is defined.
### Version information (for bug reports)
- **Firefox version**: Firefox 123.0.1
- **Your OS and version**: Windows 11 23H2 22631.3296
- Paste the output of these commands:
```
node --version && npm --version && web-ext --version
v21.6.2
10.2.4
7.11.0
```
┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/ADDLINT-490)
Oh, how did I missed that…
EDIT:
Aaaaactually, the MDN says the permissions.request requires 120 version permissions.request() - Mozilla | MDN
But as the issue says, even when changing strict_min_version from 115 to 121 (just in case), it won’t help.
dotproto
(Simeon Vincent)
May 13, 2024, 10:07pm
6
Thanks for sharing a link to the addons-linter issue!