Closed Bug 353713 Opened 18 years ago Closed 16 years ago

Calling document.write on documentElement.innerHTML while the page loads pegs CPU and memory grows

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sayrer, Unassigned)

References

Details

Attachments

(1 file)

Similar to bug 185945, but much nastier.

In the console, this repeats endlessly:

JavaScript error: file:///Users/sayrer/Desktop/props.html, line 16: too much recursion
###!!! ASSERTION: GC preservation didn't work: 'Not Reached', file /Users/sayrer/firefox/mozilla/dom/src/base/nsJSUtils.cpp, line 280
###!!! ASSERTION: listener wasn't preserved properly: 'eventListener', file /Users/sayrer/firefox/mozilla/content/events/src/nsEventListenerManager.cpp, line 1733
JavaScript error: file:///Users/sayrer/Desktop/props.html, line 26: too much recursion
###!!! ASSERTION: GC preservation didn't work: 'Not Reached', file /Users/sayrer/firefox/mozilla/dom/src/base/nsJSUtils.cpp, line 280
###!!! ASSERTION: listener wasn't preserved properly: 'eventListener', file /Users/sayrer/firefox/mozilla/content/events/src/nsEventListenerManager.cpp, line 1733
Attached file demo as plaintext
Can't repro.
I can't reproduce this on trunk either.  I see in the error console a bunch of these:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMNSHTMLDocument.write]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: http://bsterne/test/bugs/353713/props.html :: <TOP_LEVEL> :: line 24"  data: no]
Source File: http://bsterne/test/bugs/353713/props.html
Line: 24

I'm going to resolve WORKSFORME since neither Lucas or I can repro.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Ditto on the 1.8.1.x branch
Group: core-security
Flags: in-testsuite+
I just get 211*

WARNING: NS_ENSURE_TRUE(!mTooDeepWriteRecursion) failed: file /Users/jruderman/central/content/html/document/src/nsHTMLDocument.cpp, line 2146

The test takes about 2 seconds, so I optimistically added it to the crashtest suite.
Depends on: 469626
I had to disable the test due to intermittent orange.  I filed 469626 for
making a better test.
Flags: in-testsuite+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: