After multiple rewrites and different attempts, using ports, or simple messages, page/browser actions or menu’s: i keep getting a warning in the console:
“browser.ui.interaction.content_context - The key length must be limited to 72 characters.”
and the code never runs:
(Note: This is not the original code i wrote, as i have rewritten and deleted it so many times, its a skeleton of what it once was)
It used to work, is the weird thing, then i added two lines of code to the background script, and then it stopped. Reverting didn’t fix it.