Closed
Bug 394540
Opened 17 years ago
Closed 14 years ago
Recurring into document.write using DOMCharacterDataModified event can hang Firefox
Categories
(Core :: DOM: HTML Parser, defect, P5)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: assertion, hang, testcase, Whiteboard: [fixed by the HTML5 parser])
Attachments
(1 file)
725 bytes,
text/html
|
Details |
Loading the testcase triggers: ###!!! ASSERTION: Tag mismatch. Closing tag on wrong context or something?: 'nodeType == eHTMLTag_form || nodeType == aTag', file /Users/jruderman/trunk/mozilla/content/html/document/src/nsHTMLContentSink.cpp, line 928 ###!!! ASSERTION: Error: invalid tag stack position: 'mBodyContext->GetCount() > 0', file /Users/jruderman/trunk/mozilla/parser/htmlparser/src/CNavDTD.cpp, line 2719 Firefox hangs, repeatedly reporting the second assertion. I'm not sure this is a parser bug. The bug might be that the mutation event fires despite the page being in a "loading" state (see bug 90983).
Flags: blocking1.9?
Might not be a real blocker since it's not exploitable. But would be great if you could have a look at this blake. We'll probably degrade this to [wanted-1.9] once we get closer to release.
Assignee: nobody → mrbkap
Flags: blocking1.9? → blocking1.9+
Reporter | ||
Comment 2•17 years ago
|
||
This isn't the only bad thing that happens with the combination of mutation event handlers and document.write, fwiw.
Comment 3•17 years ago
|
||
Bug 394418 may have an impact on the behavior here.
Jesse, does this happen still now that bug 394418 is fixed?
Priority: -- → P5
Reporter | ||
Comment 5•17 years ago
|
||
I still get the two assertions in comment 0. I don't know whether it still leads to a hang because I turned the second assertion into an abort locally.
Comment 6•17 years ago
|
||
Isn't the issue that we end up notifying sync from inside the content sink when we append text to an already-flushed and existing text node? See also bug 235255. Maybe we should just get that patch in?
Depends on: 235255
suer since there is a patch we might as well land it
Comment 8•17 years ago
|
||
Well. That patch isn't quite done is the problem.... ;) Otherwise it would _be_ in.
Comment 9•16 years ago
|
||
Marking as wanted for a dot release per driver reprio triage w/ jst and sicking.
Flags: tracking1.9+ → wanted1.9.0.x+
Priority: P5 → --
Updated•16 years ago
|
Priority: -- → P5
Updated•15 years ago
|
Assignee: mrbkap → nobody
Reporter | ||
Comment 10•15 years ago
|
||
Still happens with html5.enable false, but not with html5.enable true.
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by the HTML5 parser]
You need to log in
before you can comment on or make changes to this bug.
Description
•