Closed
Bug 87030
Opened 23 years ago
Closed 20 years ago
crash [@ nsXMLContentSink::RefreshIfEnabled ] when calling Document.load()
Categories
(Core :: XML, defect, P2)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: jruderman, Assigned: hjtoi-bugzilla)
References
()
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(3 files)
1.39 KB,
text/xml
|
Details | |
2.06 KB,
text/plain
|
Details | |
703 bytes,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce: 1. Debug->Viewer Demos->XML Sorting 2. Type javascript:document.load(".","text/xml"); into the location bar and press enter. (Using "text/html" instead of "text/xml" gives the same result.) Result: assertion, followed by a crash ###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRa wPtr != 0', file ..\..\..\dist\include\nsCOMPtr.h, line 649 If I replace "." with "books.xml", the page appears to reload, and I get an extra assertion before the dereferencing-null assertion: ###!!! ASSERTION: initial containing block already created: 'nsnull == mInitialC ontainingBlock', file d:\buildmoz\mozilla\layout\html\style\src\nsCSSFrameConstr uctor.cpp, line 8444
Assignee | ||
Comment 2•23 years ago
|
||
So this only occurs if you type that funny URL in the URLbar? Or do we crash if that URL is embedded in the page as well?
Keywords: crash
Assignee | ||
Updated•23 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla0.9.3
Reporter | ||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
I just attached a stack trace that I got from a crash using the testcase, using a linux cvs build from this afternoon.
Assignee | ||
Updated•23 years ago
|
OS: Windows NT → All
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Assignee | ||
Comment 6•23 years ago
|
||
document.load() tries to load document as data, so it is no wonder there are problems with this usage scenario. I have a fix to the crash, but I don't like it... The idea in the fix is: in XML content sink DidBuildModel() where we normally call StartLayout() check the parser command and if it is "loadAsData" don't call StartLayout(). The reason why I don't like it is that for typical document.load() calls embedded in scripts things just work even without this hack. I have not yet tracked down why this usase pattern here causes these problems...
Assignee | ||
Comment 7•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Priority: P1 → P2
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.9 → mozilla1.0
Comment 8•22 years ago
|
||
Moving Netscape owned 0.9.9 and 1.0 bugs that don't have an nsbeta1, nsbeta1+, topembed, topembed+, Mozilla0.9.9+ or Mozilla1.0+ keyword. Please send any questions or feedback about this to adt@netscape.com. You can search for "Moving bugs not scheduled for a project" to quickly delete this bugmail.
Target Milestone: mozilla1.0 → mozilla1.2
Comment 9•22 years ago
|
||
*** Bug 141245 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.2alpha → Future
Updated•21 years ago
|
Component: Parser → XML
Updated•21 years ago
|
Summary: crash at nsXMLContentSink::RefreshIfEnabled when calling Document.load() → crash [@ nsXMLContentSink::RefreshIfEnabled ] when calling Document.load()
Comment 10•20 years ago
|
||
Not seeing any crashes on Windows XP using the attached test case or following the manual procedure to reproduce. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
Reporter | ||
Comment 11•20 years ago
|
||
Clicking #2 in the testcase crashes in a month-old build: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040210 Firebird/0.8.0+ But WFM in a build from this week: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040327 Firefox/0.8.0+
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Updated•13 years ago
|
Crash Signature: [@ nsXMLContentSink::RefreshIfEnabled ]
You need to log in
before you can comment on or make changes to this bug.
Description
•