Why do browsers let you close a tab instantly but ask before closing the window?
Closing a single tab happens immediately and silently, even if there is a half-written message in it. Closing a window with several tabs often produces a confirmation. Some browsers let you enable a warning for the single-tab case but it is off by default and buried.
Given how easy it is to close the wrong tab, and how much can be lost, the default seems like the wrong way round to me. What is the reasoning?
@research_rosa · 3w ago
The reasoning is that tabs are opened and closed constantly and windows are not, so the two actions have completely different frequencies.
A typical session involves opening and closing dozens of tabs. Adding a confirmation to that would mean dozens of interruptions per session to protect against an occasional mistake, and a dialog that appears that often stops being read within a day. You would train people to dismiss it reflexively, at which point it protects nothing and costs everything.
Closing a window is rarer and destroys more, so the ratio flips and a confirmation earns its place.
This is the general principle behind when to confirm anything: the cost of a confirmation is paid on every correct action, and the benefit is collected only on incorrect ones. Frequent actions should almost never confirm.
Reply
Report