Closed Bug 111185 Opened 23 years ago Closed 23 years ago

window.close() closes all tabs without prompting

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 103452

People

(Reporter: mozilla, Assigned: rogerl)

References

()

Details

I had four tabs opened and when I clicked the close link on this page mozilla
just closed without even asking me if I really wanted to close the other tabs.

I believe a better behaviour would be to :

a) ask wether or not I want to close the window or
b) close only the tab where I clicked the window.close() link

*** This bug has been marked as a duplicate of 103452 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Verified Duplicate.

Note the component of the duplicate bug: "Tabbed Browser". 
This is not a JavaScript Engine issue. JavaScript Engine deals with the
abstract JavaScript programming language. Specifically, low-level objects
such as String(), Number(), and Date(). The JS Engine is not itself 
aware of browser or DOM objects like window, document, sockets, etc.
You need to log in before you can comment on or make changes to this bug.