Browser.permissions.request not working as expected

Hi there - I am trying to port over Chrome extension over to Safari Web extension. Looks like Safari has a very aggressive permissions flow which isn't a great user experience but I get the privacy benefits.

I am trying to move some of my permissions like <all_urls> or tabs as optional permissions and build a flow where I can request the user for them in hopes that i can educate them as to why I need them similar to how Chrome/FF have it.

However when i use browser.permissions.request - i always end up getting true without invoking the prompt. The prompt seems to come up regardless when i start visiting a website.

Can someone help with this? Sounds more like a defect in Safari.

Can you please file some feedback on https://feedbackassistant.apple.com and include a sample extension that reproduces this (and steps to reproduce)?

That would be very helpful to help figure out exactly what is going on here, and to determine if it is an issue in Safari or the extension.

Thanks!

@sriharshaang having the same issue, have you figured this out?

Browser.permissions.request not working as expected
 
 
Q