Closed Bug 222125 Opened 21 years ago Closed 21 years ago

javascript alert windows should be modal relative only to current webpage, not whole browser window

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 59314

People

(Reporter: elbarto, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031009 Firebird/0.7+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031009 Firebird/0.7+

If you run into a javascript that tosses up an alert box and then loops back on
itself, you're stuck having to kill the browser.  While alert/confirm boxes
should prevent you from interacting with the current web page, they should not
prevent you from interacting with your browser controls (menus, toolbar,
bookmarks, etc).  

Reproducible: Always

Steps to Reproduce:
Load a webpage that contains the following code in the body:

<script lang='JavaScript'>
while(1) {
  alert("Goodbye cruel world!");
}
</script>

Actual Results:  
Can't interact with the current browser window at all.  Bookmarks, menus, even
the close button don't work.  Note:  I'm marking this as critical because it
basically hangs the browser, forcing it to be killed from outside.

Expected Results:  
Allow interaction with the browser controls so that I can escape the bad webpage.

*** This bug has been marked as a duplicate of 59314 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.