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

No clean-up when disabling the extension #9

Open
pointlessone opened this issue Oct 28, 2021 · 1 comment
Open

No clean-up when disabling the extension #9

pointlessone opened this issue Oct 28, 2021 · 1 comment
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@pointlessone
Copy link

When the extension is disabled/removed the title is kept with the last value of tab count. Obviously, it's not updated on new tabs or when tabs are closed. Tab count is cleaned up on browser restart.

@Lej77
Copy link
Owner

Lej77 commented Oct 29, 2021

This is an unfortunate limitation of the WebExtension APIs. The prefix isn't cleared by Firefox automatically and nothing happens if I try to use WebExtension APis in response to browser events such as beforeunload or visibilityState. So currently I know of no good solution for this issue. My current workaround is to have a manual "disable" button (says something like "prevent further updates") in the addons option page that when clicked disables all functionality and clears all window title prefixes.

tl;dr; the current workaround is to press the disable button on the addon's option page.

@Lej77 Lej77 added enhancement New feature or request wontfix This will not be worked on labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants