-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error: Extension context invalidated #47
Comments
Hi @lirtistan, Hm I didn't noticed that till now. |
Looks like the same issue as discussed here https://stackoverflow.com/questions/53939205/how-to-avoid-extension-context-invalidated-errors-when-messaging-after-an-exte Actually content.js is always active, maybe that should be changed/limited somehow to sites where the detail_panel is really wanted by user interaction. |
The If someone dislikes this behaviour, you can always manage via the browser settings on which sites this extension should and shouldn't be active. |
Then it needs to be refactored to be more robust, starting with surrounding await expressions with try/catch clauses, especialty if they have todo with IO operations. Do you agree with that!? |
I agree that we should make it more robust, but I would prefer to first find a reproducible way to replicate the issue before starting refactoring. |
Strange, that error just appeared on the github pages. Sure at some point during our last tests, i also tested on github (because UI is basically RoR), so they using hotwired stuff (at least TurboFrames, afaik). So i went to the popup.html inspector and cleared the application context (Tab I keep searching. Also found a new error, see #49 for details. |
Ok the error showed again, seems this happens every time the extension is getting an upgrade, but still active on all sites during the upgrade process. Happend again during testing of #50 |
@lirtistan Awesome that you seem to have found the root of the error! |
Hi,
content.js throws errors on various sites (for whatever reason), try to reading "options" from storage.
The text was updated successfully, but these errors were encountered: