Skip to content

Re-opening tab developer console after addon reload (brainstorming) #2965

Open
@Juraj-Masiar

Description

@Juraj-Masiar

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:

  1. 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")

  2. 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"?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions