Do not close browser with last tab

#2.8 / 10 rate

Do not close browser with last tab

618 users

2017-11-12

Sebastian Blask

Extension Information

5 star
31%
4 star
0%
3 star
15%
2 star
8%
1 star
46%

Supported Languages

Permissions

Description

Creates a new window with the same properties as the closing one when the last tab is closed.

Do not close browser with last tab
==================================

Chrome usually shuts down when its last tab is closed. This extension creates a
new window with the same properties as the closing one when this happens. You
might get a flicker, but the perceived effect will be that a new tab replaces
the closed one.

As there is neither a way to capture the window properties while the tab is
closing nor an event that informs about updates to the properties, they are
cached whenever the focus of the window or a tab changes (which includes
creating new windows and tabs).

This extension only works if the `Continue running background apps when
Chromium is closed` setting (under `Advanced`) is enabled (it is by default).

Known Issues
------------

XFCE: The properties of non-maximized windows given by Chrome are incorrect as
they do not account for border and title bar. This results in a displacement
when the window is re-created.

Feedback
--------

You can report bugs or make feature requests on
https://github.com/sblask/webextension-do-not-close-browser-with-last-tab

Patches are welcome.