web-ext
web-ext copied to clipboard
Feature request: Provide option to clear local storage when `web-ext run` reloads the extension on file changes
Is this a feature request or a bug?
Feature request
What is the current behavior?
Currently, web-ext run helpfully reloads the extension on file changes, but it doesn't clear local storage.
What is the expected or desired behavior?
It'd be nice if there were an option to clear local storage on reload.
There are a few reasons why this would be especially helpful:
- Since reloads behave like upgrades, and most developers don't want to clear local storage on upgrade.
- Since "Remove"-ing the extension does not clear local storage (by design for the "Undo" option to restore the addon without losing data).
Right now I just clear local storage in the add-on debugging console every time.