serversideup / webext-bridge

💬 Messaging in Web Extensions made easy. Batteries included.
https://serversideup.net/open-source/webext-bridge
MIT License
547 stars 50 forks source link

Window post message within an iframe. use parent.postMessage? #58

Open vinceprofeta opened 1 year ago

vinceprofeta commented 1 year ago

Struggling to send a message from an iframe that I load from a url. I saw that the internals are calling window.postMessage but could it call parent.postMessage or allow it to be configured?

mubaidr commented 1 year ago

Looks like right now, you have to send message to parent and then forward this message to background js.