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

Provide a message to reload the devtools after the extension context is invalidated on an update #1476

Open
jerelmiller opened this issue Aug 19, 2024 · 0 comments

Comments

@jerelmiller
Copy link
Member

When the extension is updated, either automatically by the browser in the background or by the user updating it, the extension context is invalidated so we are no longer able to receive updates from the background script in the devtools script. Currently this results in the UI seeming to "freeze" since there are no updates that we can show in the UI.

#1459 adds support for showing an error screen which will at least now show that something is wrong, but this screen is a bit naive because it captures any error that occurs when communicating with the content scripts.

When an extension is reloaded, there is a specific error thrown when calling port.postMessage that we should be able to detect. When this occurs, let's show a message to the user that the devtools needs to be closed and opened again.

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