Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

How to prevent a single tab from closing (not the last tab in a window)?

  • 5 réponses
  • 0 a ce problème
  • 20 vues
  • Dernière réponse par cor-el

more options

Long ago, I would use Tab-Mix Plus but that functionality went away around FF57.

For most cases since then, Cntl-Shift-T works well.

But I found a use case where Cntl-Shift-T does not work. If one has an active form in progress in given tab, then opens another link on top of that, then closes the tab with Cntl-W or equivalent, then after the CS-T the form progress from the overlaid url is lost.

I use Cntl-W so freely that I can miss that I have accidentally closed tabs that I normally like to keep open. I sometimes don't notice till much later, too long for easy CS-T and I have to recreate from other resources. I have already removed the X-close buttons per tab.

Tab-Mix Plus would just prevent closing of protected tabs all-together and prevent both of these issues.

I have my own webapp framework, and my primary way to workaround this is use target=_blank liberally on local links. But that is an unnatural process in many ways with extra overhead of creating and destroying tabs rather that simply redirecting the current one.

Maybe there's another way around all of this?

Long ago, I would use Tab-Mix Plus but that functionality went away around FF57. For most cases since then, Cntl-Shift-T works well. But I found a use case where Cntl-Shift-T does not work. If one has an active form in progress in given tab, then opens another link on top of that, then closes the tab with Cntl-W or equivalent, then after the CS-T the form progress from the overlaid url is lost. I use Cntl-W so freely that I can miss that I have accidentally closed tabs that I normally like to keep open. I sometimes don't notice till much later, too long for easy CS-T and I have to recreate from other resources. I have already removed the X-close buttons per tab. Tab-Mix Plus would just prevent closing of protected tabs all-together and prevent both of these issues. I have my own webapp framework, and my primary way to workaround this is use target=_blank liberally on local links. But that is an unnatural process in many ways with extra overhead of creating and destroying tabs rather that simply redirecting the current one. Maybe there's another way around all of this?

Toutes les réponses (5)

more options

Not sure if this is useful for you, bit pinned tabs are not closed by Ctrl-W

more options

When I pin a tab, it gets hidden at the front of my tab list, I need to unpin it to work on it again. I want to protect it from accidental closure while I'm actively work on it. Am I missing something?

Thanks...

more options

Note that the Tab Manager button is enabled by default in 106+, so you can use this button to locate a pinned tab since with browser.tabs.tabmanager.enabled = true pinned tabs are included in the list all tabs drop-down list.

Modifié le par cor-el

more options

I don't believe this matches my needs since I want to prevent accidental closing while I am actively working on a tab, not while it's pinned. Again, am I missing something?

more options

Like written above by Balázs Meskó, the only way to prevent Ctrl+W from closing the tab is to pin this tab. If you normally aren't using pinned tabs then this will be the only pinned tab in case you want to give this a try.