JavaScript can close firefox window without warning user

RESOLVED DUPLICATE of bug 266371

Status

()

--
critical
RESOLVED DUPLICATE of bug 266371
14 years ago
13 years ago

People

(Reporter: minskrappost, Assigned: bugzilla)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sg:dupe 266371], URL)

(Reporter)

Description

14 years ago
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
Last Resolved: 14 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.