Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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

  • 5 件の返信
  • 0 人がこの問題に困っています
  • 21 回表示
  • 最後の返信者: 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?

すべての返信 (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.

この投稿は 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.