Closed Bug 30830 Opened 20 years ago Closed 20 years ago

Bad javascript can lockup Mozilla

Categories

(Core :: DOM: Core & HTML, defect, P3, major)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 13350

People

(Reporter: locka, Assigned: vidur)

Details

Save the HTML below into a file and view it with Mozilla. Mozilla goes into an 
infinite loop which it never exits. CPU activity goes through the roof and the 
UI is unresponsive and must be killed.

<html>
<head>
<title>Death by Javascript!</title>
</head>
<body>
<p>
<script language="JavaScript">
document.write("Script running");
while(1 > 0) ;
document.write("Script complete");
</script>
</p>
</body>
</html>
Summary: Bad javascript can kill Mozilla → Bad javascript can lockup Mozilla
This is similar to bug 13350 except that there's no issue with GC here, it's 
just that the browser locks up due to the infinite loop. Nav 4.7 keeps the UI 
alive at least.
Assignee: rogerl → vidur
Component: Javascript Engine → DOM Level 0
QA Contact: rginda → desale
Marking as dup of bug 13350.

*** This bug has been marked as a duplicate of 13350 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Verified Dup.
Status: RESOLVED → VERIFIED
Depends on: 30942
No longer depends on: 30942
You need to log in before you can comment on or make changes to this bug.