I’ve read the following:
To follow the principle of “no surprises”, APIs like this can only be called from inside the handler for a user action. User actions include the following:
Clicking the extension's browser action or page action.
Selecting a context menu item defined by the extension.
Activating a keyboard shortcut defined by the extension (this only treated as a user action from Firefox 63 onwards).
Clicking a button in a page bundled with the extension.
from MDN and I understand it means that I can’t use
from a content script, so how can I trigger the sidebar to launch if something gets clicked that is handled in a content script?
Any ideas how this can be solved?