Description
Is this a feature request or a bug?
Feature / discussion
What is the current behavior?
If you are developing an addon page, you quickly notice that your tab is closed each time web-ext
reloads your addon.
You may hotfix it by adding await browser.tabs.create({url: 'options.html'})
into your background script, but that won't re-open developer console in that tab.
What is the expected or desired behavior?
I want the developer console to be opened after the reload.
I would like to brainstorm possible solutions for this problem.
For example:
-
prevent closing tab when the addon is reloaded - I guess Firefox would have to implement something (which would actually fixed the issue with "pinned addon page disappearing after addon update")
-
web-ext
could maybe open dev-tools if it has permission for that (I'm not sure how the integration with Firefox works and what are the capabilities). Also the question is, how to configure it... maybe new parameter "on-reload-dev-url=options.html"?