# Prevent Closing Window

> Displays the "Leave Page" prompt to avoid accidentally closing the current window. \*\*BUG\*\* To allow Firefox to shut down, click Stay on page and the Close This Tab button before you exit.

Canonical page: [https://chrome-stats.com/d/prevent-closing-window](https://chrome-stats.com/d/prevent-closing-window)

## Overview

- **ID:** `prevent-closing-window`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** jscher2000
- **Category:** tabs
- **Daily users:** 64
- **Weekly downloads:** 6
- **Rating:** 3.70 / 5 (10 ratings)
- **Version:** 1.0
- **Last updated:** 2020-09-19
- **First published:** 2019-01-05
- **Size:** 42 KB
- **Data as of:** 2026-09-13
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/prevent-closing-window/)
- **Website:** [https://github.com/jscher2000/Prevent-Closing-Window/](https://github.com/jscher2000/Prevent-Closing-Window/)

## Description

Prevent Closing Window is a Firefox extension designed to safeguard your browsing sessions by prompting a confirmation before closing tabs or windows. By activating its protection options, users receive a "Leave Page" prompt whenever they click the close button, helping to avoid accidental closure of important data or tabs.

This extension adds a customizable tab that can be enabled in regular windows, private windows, or both. It offers user-friendly options accessible from the Add-ons page, allowing tailored protection preferences. Note: To fully close Firefox, users should select "Stay on page" and then use the "Close This Tab" button as described due to a known bug. Prevent Closing Window ensures better control over your browsing experience by preventing unintentional tab or window closures.

## Rankings

- #14,555 — Overall
- #7 — prevent
- #54 — event
- #62 — present
- #119 — close
- #142 — windows

## Permissions and access

### Permissions

- `menus`
- `tabs`
- `storage`

## Safety

- **Risk impact:** Moderate risk impact
- **Risk likelihood:** Low risk likelihood

### Analysis details

- Grants access to browser tabs, which can be used to track user browsing habits and history, presenting a privacy concern.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Don't Close Last Tab](https://chrome-stats.com/d/don-t-close-last-tab) — 15 users
- [Prevent Accidental Close](https://chrome-stats.com/d/prevent-accidental-close) — 1 users
- [Tab Close Confirmation](https://chrome-stats.com/d/tab-close-confirmation) — 1 users
- [Disable Tab Close](https://chrome-stats.com/d/disable-tab-close) — 238 users, 4.20 / 5
- [Page Lock](https://chrome-stats.com/d/page-lock) — 177 users, 3.25 / 5
- [Don't Close Last Tab](https://chrome-stats.com/d/dont-close-last-tab) — 202 users, 2.06 / 5
- [Open Page in Private Window](https://chrome-stats.com/d/open-page-in-private-window) — 431 users, 4.72 / 5
- [Tab Lock (Ask before closing)](https://chrome-stats.com/d/tab-lock-ask-before-closing) — 47 users, 5.00 / 5
- [Disable Tab Detach 2](https://chrome-stats.com/d/disable-tab-detach-2) — 507 users, 4.96 / 5
- [Lock Tab Page](https://chrome-stats.com/d/lock-tab-page) — 490 users, 4.07 / 5
- [Close After Last Tab](https://chrome-stats.com/d/close-after-last-tab) — 2 users, 3.57 / 5
- [PDF Always In Tab](https://chrome-stats.com/d/pdf-always-in-tab) — 4 users

---

Source: [Chrome-Stats](https://chrome-stats.com/d/prevent-closing-window)
