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