Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMessage on Window does only accept messages from content-script. Messages from Background or Popup are never-resolving Promises. #96

Open
thomasf1 opened this issue Nov 1, 2024 · 0 comments
Labels
🧐 Bug: Needs Confirmation Something isn't working, but needs to be confirmed by a team member.

Comments

@thomasf1
Copy link

thomasf1 commented Nov 1, 2024

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

  1. add setNamespace and a onMessage listener & on the window context
  2. add allowWindowMessaging and a send message to the content-script context -> the sendMessage resolves / works
  3. add a send message to the popup context -> the sendMessage never resolves / doesn´t work

Anything else?

No response

@thomasf1 thomasf1 added the 🧐 Bug: Needs Confirmation Something isn't working, but needs to be confirmed by a team member. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧐 Bug: Needs Confirmation Something isn't working, but needs to be confirmed by a team member.
Projects
None yet
Development

No branches or pull requests

1 participant