Closed
Bug 111187
Opened 23 years ago
Closed 23 years ago
Calling window.close() on a normal browser window closes the window unconditionally but should ask the user for confirmation
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: martin.honnen, Assigned: jst)
References
()
Details
With NN4 JavaScript window.close() can only unconditionally close a window if that window has been opened with JavaScript while for other windows a confirmation dialog asks the user if he wants to close the window. With Mozilla 0.9.6 and 0.9.5 I have tested that the above url closes any window unconditionally. That is a security violation as a page can then close down windows or even the complete browser.
Reporter | ||
Comment 1•23 years ago
|
||
Sorry, I made a typo in the url, I am now trying to correct that
Reporter | ||
Comment 2•23 years ago
|
||
I just tested the above URL with NN4.78 and it also closes the window unconditionally. I am however sure earlier NN4 versions didn't allow that. Here is a link to the client side JavaScript reference docs http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1201822 which describe the intended behavior of window.close. With IE6 I get the confirmation dialog.
Reporter | ||
Comment 4•23 years ago
|
||
*** This bug has been marked as a duplicate of 32571 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•