Asking for some optional permissions won't alert user and will be granted automatically

I’ve just noticed that if I list “cookies” permission as Optional and then ask user for it using browser.permissions.request({permissions: ['cookies']}), it will NOT alert user that I need this permission.

Does this mean all those permissions listed as “not-alerted” won’t get alerted when I ask for them?
https://extensionworkshop.com/documentation/develop/request-the-right-permissions/

Also is there some benefit listing it as Optional instead of including it in list of permissions?
These not-alerted are not listed on the AMO page / permissions list anyway, right?

1 Like

AFAIK no, as you’ve noticed, there is no alert and they are granted directly.
The only reason you may do this is when you do a cross-browser extension and other browsers handle this differently.

As far as I see, yes. They are just considered too basic to be of any risk.