Closed Bug 309394 Opened 19 years ago Closed 19 years ago

Infinite loop of javascript alerts has no escape system.

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 61098

People

(Reporter: arwyn-bugzilla, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.6 (Ubuntu package 1.0.6)

A simple infinite loop of javascript alerts causes the browser to become
unusable. Since there is no escape sequence the only way to close the browser is
to manualy kill the processes.

Reproducible: Always

Steps to Reproduce:
1. run the javascript: while(true) { alert('hi!'); };
2. your browser is now Doomed!
Actual Results:  
Uninterupted infinite loop of alerts

Expected Results:  
If script has shown N alerts show dialog allowing the user to kill the script or
let script continue.

Marked as critical because it's effects are similar to that of a crash.

Note: If the script was in the body's onloud and you have a session saver
installed the effect could be far worse.
Attached file Simple TestCase

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

Attachment

General

Created:
Updated:
Size: