Tab messages are not sent to iframe running extension resource

Hi all!
I have an extension that injects an HTML in a page and listens to messages comming from the background script.
When I listen to messages in the injected iframe's javascript (using browser.runtime.onMessage.addListener) comming from the background page (using browser.tabs.sendMessage) the listener is never triggered.

I have a minimal example in: github.com/raphaelfaria/safari-extension-bug-reporting

To reproduce it go to e.g. example.com.
It'll inject the iframe and add one listener in the content script and one in the iframe. On the bg script there is a global function triggerMsg that should be called.
Both listeners should be called but only the CS one is.
Thank you for the sample code and report. We will investigate.
Hi! Are there any news on this? Were you guys able to reproduce it?

This still seems to be broken. Any suggestions for a workaround, or updates on a fix?

I've reported this issue in this thread as well https://developer.apple.com/forums/thread/671649.

bweinstein claims this was fixed, but it still hasn't been. Hoping he or @timothy.hatcher can clarify or provide an update.

Tab messages are not sent to iframe running extension resource
 
 
Q