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

[extension] Fix messaging between app and background #8981

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

tdraier
Copy link
Contributor

@tdraier tdraier commented Nov 27, 2024

Description

This fixes messaging by using chrome.runtime instead of long-lived connection. As the background context can be reset when the worker is restarted, don't store anything that should be kept for long in state, only transient information that are expected to be reset.
Fixes input_bar_message to not expect a response.
Also minor fixes in screenshot to better handle errors and timeouts

Risk

Deploy Plan

@tdraier tdraier requested a review from PopDaph November 27, 2024 21:50
Copy link
Contributor

@PopDaph PopDaph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏🏻

@tdraier tdraier merged commit 75c9ef2 into main Nov 28, 2024
3 checks passed
@tdraier tdraier deleted the extension-fixes branch November 28, 2024 08:05
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

Successfully merging this pull request may close these issues.

2 participants