Closed
Bug 30830
Opened 25 years ago
Closed 25 years ago
Bad javascript can lockup Mozilla
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
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
Comment 1•25 years ago
|
||
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
Comment 2•25 years ago
|
||
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•