Skip to content

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

License

Notifications You must be signed in to change notification settings

sblask-webextensions/webextension-do-not-close-browser-with-last-tab

Repository files navigation

pre-commit Status

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.

Privacy Policy

This extension does not collect or send data of any kind to third parties.

Feedback

You can report bugs or make feature requests on Github

Patches are welcome.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •