webext-bridge
webext-bridge copied to clipboard
onMessage on Window does only accept messages from content-script. Messages from Background or Popup are never-resolving Promises.
Version
6.0.1
Current Behavior
A onMessage listener in the window context currently only reacts to messages from content-script. Messages from Background or Popup are never-resolving Promises.
Expected Behavior
Messages from Background or Popup to the window context should work.
Steps To Reproduce
- add setNamespace and a onMessage listener & on the window context
- add allowWindowMessaging and a send message to the content-script context -> the sendMessage resolves / works
- add a send message to the popup context -> the sendMessage never resolves / doesn´t work
Anything else?
No response
Same here. Can someone confirm this?
Same here. Can someone confirm this?
Hey... Did figure that out: it was a missing "tabs" permission. Was then giving up on it rather then adding extra permissions.
Thanks for the reply @thomasf1 ! I do have tabs permission added in my manifest though.