03-12-2026 09:38 AM
I am familiar with browser.tabs.closeWindowWithLastTab, but that setting protects the window rather than the running application. When running firefox in an ephemeral container as I often do, Ctrl+W quits the the application if there is only one tab in one window present leaving nothing to recover via Ctrl+Shift+T. I still want to close a window if there is one tab present when there is another firefox window open. If there is only one window open with just the one tab, there should be an option to prevent closing that tab and exiting Firefox.