fregante / webext-permission-toggle

Browser-action context menu to request permission for the current tab.
https://fregante.github.io/webext-permission-toggle/
MIT License
70 stars 5 forks source link

Safari requires the user to click twice #13

Closed fregante closed 3 months ago

fregante commented 3 years ago

There's probably nothing I can do about it. More info in https://github.com/fregante/webext-domain-permission-toggle/issues/10#issuecomment-755880911

gif2

fregante commented 1 year ago

Probably I can just query the URL given the tab ID

https://github.com/fregante/webext-domain-permission-toggle/blob/e125b40129e53342bc6ac07a1afc29696da347a4/index.ts#L54

fregante commented 3 months ago

🤷‍♂️

I still get the error:

Screenshot 17

Even if I specifically request it:

https://github.com/fregante/webext-permission-toggle/blob/137a1fa6c89de4669fa25e7f0591bbca9f758930/index.ts#L131

However I noticed that tab.url is not undefined, it's '', which means it's never actually requested.