Closed Bug 571683 Opened 14 years ago Closed 14 years ago

Javascript message boxes can force a tab to stay open and block whole browser

Categories

(Firefox :: Security, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 59314

People

(Reporter: contact, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4webm) Gecko/20100518 MozillaDeveloperPreview/3.7a4webm
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4webm) Gecko/20100518 MozillaDeveloperPreview/3.7a4webm

Apparently, a long row of alert()s in JavaScript can stop users from being able to close a browser tab.

Reproducible: Always

Steps to Reproduce:
1. Browse to the given site [not safe for work]
2. Attempt to close the tab
3. See how the script prevents you from doing that
Actual Results:  
I cannot close the tab because of some lame script

Expected Results:  
I can, despite the message box, click the tab close button AGAIN if I want to force-close it, which would then close the tab and the message box instantly and terminate the script.
This is a dup of bug 61098, but as it looks like that one won't be implemented I'm going to dup this against bug 59314.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.