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

The menu item should be updated depending on the current tab #18

Closed fregante closed 3 years ago

fregante commented 3 years ago

Whenever the user is on somedomain.com the menu option with the text Enable MY PLUGIN on this domain is present

This is explicitly avoided in the code, this is what should happen (checked and unclickable):

Screen Shot 3

but I think I've seen this happen before so there might be some bug or race condition that prevents the logic from running correctly. Usually if you reload the tab or visit somedomain.com in a new tab it works. I have yet to look into this specifically.

Originally posted by @fregante in https://github.com/fregante/webext-domain-permission-toggle/issues/17#issuecomment-768414390