Closed Bug 341671 Opened 18 years ago Closed 18 years ago

recursive innerHTML makes the browser unresponsive

Categories

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

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 197052

People

(Reporter: pallosp, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 SeaMonkey/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 SeaMonkey/1.0.2

The browser doesn't interrupt the following script after a period of time. The user interface becomes unresponsive.

<html>
dummy
<script>
document.write(document.getElementsByTagName("html")[0].innerHTML);
</script>
</html>


Reproducible: Always
Related issue:

The following code uses 512 MB ram before it gets stopped. I think lower memory limit should be allowed for scripts.

<script>
x=' ';
for (i=0; i<100; i++) x+=x;
document.write(x);
</script>
==> DOM
Assignee: general → general
Component: General → DOM
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch

*** This bug has been marked as a duplicate of 197052 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.