Closed Bug 279529 Opened 20 years ago Closed 20 years ago

JavaScript can close firefox window without warning user

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 266371

People

(Reporter: minskrappost, Assigned: bugzilla)

References

()

Details

(Whiteboard: [sg:dupe 266371])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Deatils about this bug is located here: http://www.javascript.nu/firefoxexploit.shtml In short form, this will close the browser Window: <SCRIPT LANGUAGE="javascript"> <!-- // Script to close browser - NN3, NN4, Firefox 1.0. // By Omid Rouhani at www.JavaScript.nu //Make current window "_top" window.top.open("","_top"); //User will not be asked before closing window.top.close(); //--> </SCRIPT> Reproducible: Always Steps to Reproduce: 1. See description. 2. 3. Actual Results: Firefox window was closed. Expected Results: Ask user if window shall be closed or not.
Dupe. *** This bug has been marked as a duplicate of 266371 ***
Group: security
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: [sg:dupe 266371]
Group: security
You need to log in before you can comment on or make changes to this bug.