Closed Bug 152330 Opened 22 years ago Closed 22 years ago

Javascript window.close() closes the entire window even when there are tabs

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 103452

People

(Reporter: h.lai, Assigned: rogerl)

Details

When I have a browser window with 2 or more tabs, and I type
javascript:window.close(), I expect that it will only close the current tab,
since most websites assume that your browsing in a window, not in tabs.
But instead, it closes the entire window.

This is annoying when you opens a popup window in a tab, and that page has a
link called "Close this window". When I click on that link, I expect that only
the current tab will close, not the entire window.
Reporter: please always include a buildid when reporting bugs. This bug was
recently fixed.

*** This bug has been marked as a duplicate of 103452 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.