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.”
From the error description I’d assume the issue is with the context menu item and not the communication to the background script. Have you tried to see if the onClicked handler ever gets called?
Note that your warning is unrelated to the extension and comes from the telemetry system.
Edit: why do you query for a tab when you already get a tab in the onClicked listener? Seems like unnecessary complication.
I’ll reiterate, the warning you included is not related to your extension. And my question was if you’ve seen any code being executed in the onClicked handler at all from your context menu item. Like for example a console.log.