Closed Bug 45007 Opened 26 years ago Closed 26 years ago

Nested <body> elements crashes browser

Categories

(Core :: DOM: HTML Parser, defect, P1)

defect

Tracking

()

VERIFIED DUPLICATE of bug 44759

People

(Reporter: alistair.vining, Assigned: harishd)

References

()

Details

(Keywords: crash, Whiteboard: Fix in hand)

Attachments

(2 files)

The above url crashes the 2000-07-08 08:00 build. The html is seriously diseased, but I will attach a slightly simplified version. I can't be sure of the problem, but either of the following solve the crash, so may be at the root of it: 1. Delete either the line <body onload="startup()"> [line 71] or <BODY ONLOAD="CSScriptInit();"> [line 191] or 2. Delete the <noscript> section [lines 37-39] The generator is given as 'Adobe GoLive 4', so there may be more of this stuff out there...
Adding crash keyword.
Keywords: crash
I was able to reproduce this on mozilla vits 071008 on NT stack trace below. SinkContext::CloseContainer [d:\builds\seamonkey\mozilla\layout\html\document\src\nsHTMLContentSink.cpp, line 1422] HTMLContentSink::CloseBody [d:\builds\seamonkey\mozilla\layout\html\document\src\nsHTMLContentSink.cpp, line 2797] CHTMLElement::HandleEndToken [d:\builds\seamonkey\mozilla\htmlparser\src\COtherElements.h, line 1828] COtherDTD::DidBuildModel [d:\builds\seamonkey\mozilla\htmlparser\src\COtherDTD.cpp, line 514] nsParser::DidBuildModel [d:\builds\seamonkey\mozilla\htmlparser\src\nsParser.cpp, line 1390] nsParser::ResumeParse [d:\builds\seamonkey\mozilla\htmlparser\src\nsParser.cpp, line 1910] nsParser::OnStopRequest [d:\builds\seamonkey\mozilla\htmlparser\src\nsParser.cpp, line 2355] nsDocumentOpenInfo::OnStopRequest [d:\builds\seamonkey\mozilla\uriloader\base\nsURILoader.cpp, line 269] nsHTTPFinalListener::OnStopRequest [d:\builds\seamonkey\mozilla\netwerk\protocol\http\src\nsHTTPResponseListener.cp p, line 1197] InterceptStreamListener::OnStopRequest [d:\builds\seamonkey\mozilla\netwerk\cache\mgr\nsCachedNetData.cpp, line 1156] nsHTTPCompressConv::OnStopRequest [d:\builds\seamonkey\mozilla\netwerk\streamconv\converters\nsHTTPCompressConv.cp p, line 107] nsHTTPChannel::ResponseCompleted [d:\builds\seamonkey\mozilla\netwerk\protocol\http\src\nsHTTPChannel.cpp, line 1715] nsHTTPServerListener::OnStopRequest [d:\builds\seamonkey\mozilla\netwerk\protocol\http\src\nsHTTPResponseListener.cp p, line 722] nsOnStopRequestEvent::HandleEvent [d:\builds\seamonkey\mozilla\netwerk\base\src\nsAsyncStreamListener.cpp, line 302] nsStreamListenerEvent::HandlePLEvent [d:\builds\seamonkey\mozilla\netwerk\base\src\nsAsyncStreamListener.cpp, line 106] PL_HandleEvent [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c, line 588] PL_ProcessPendingEvents [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c, line 547] _md_EventReceiverProc [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c, line 1045] USER32.dll + 0x1820 (0x77e71820)
The problem in the testcase is that there are nested body elements, this is obviously BAD HTML but, we shouldn't crash! Accepting and nominating for beta3.
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: nsbeta3
OS: Windows 98 → All
Priority: P3 → P1
Hardware: PC → All
Summary: Multiple <body onload=()> crashes browser → Nested <body> elements crashes browser
Target Milestone: --- → M18
Ok, so it turns out that this is a parser problem, specifically a problem with the transitional DTD, reassigning to harishd.
Assignee: jst → harishd
Status: ASSIGNED → NEW
Component: DOM Level 0 → Parser
Status: NEW → ASSIGNED
Refer to the patch, in bug 44759, for the fix.
Whiteboard: Fix in hand
Has the patch gone in now? It seems to be fixed in the 2000-08-03 build.
Marking this a dup of bug 44759 because it contains the patch that fixes this bug. *** This bug has been marked as a duplicate of 44759 ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Verified Duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: