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):
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