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

Set up messaging API that tags a background script to content script message with a page ID. #77

Open
kartkand opened this issue May 6, 2021 · 0 comments

Comments

@kartkand
Copy link
Contributor

kartkand commented May 6, 2021

Messages from the background script to content scripts can encounter race conditions because a tab might navigate away from the page for which a message is relevant before the message is received. This API would check the page ID in the content script before firing an event listener in order to prevent such race conditions.

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