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

Background stream sendMessage to any tab does not working #66

Open
credred opened this issue Jun 19, 2023 · 0 comments
Open

Background stream sendMessage to any tab does not working #66

credred opened this issue Jun 19, 2023 · 0 comments

Comments

@credred
Copy link

credred commented Jun 19, 2023

I found that when stream uses sendMessage, the destination parameter uses this.streamInfo.endpoint, which is initialized in contrustor
https://github.com/zikaari/webext-bridge/blob/320d2501599ed4e261801b0b65823b953633788a/src/internal/stream.ts#L57-L66
Then, after the message is sent, destination.tabId is cleared, causing this.streamInfo.endpoint.tabId to be lost.

https://github.com/zikaari/webext-bridge/blob/320d2501599ed4e261801b0b65823b953633788a/src/background.ts#L159-L161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant