Closed Bug 5206 Opened 25 years ago Closed 25 years ago

Crash loading XUL if stylesheet not found

Categories

(Core :: XUL, defect, P3)

All
Mac System 8.5
defect

Tracking

()

VERIFIED DUPLICATE of bug 2537

People

(Reporter: sfraser_bugs, Assigned: hyatt)

Details

I was loading a XUL file which referred to a non-existent stylesheet. This is easily reproduced by changing the line <?xml-stylesheet href="xul.css" type="text/css"?> in navigator.xul to point to a nonexistent stylesheet. It crashes in nsDocumentBindInfo::OnStopBinding(), in the NS_IF_RELEASE(m_NextStream); because m_NextStream has been freed already. The free occurs because of a refCounting problem at NS_RELEASE(aLoader) in XULContentSinkImpl::DoneLoadingStyle(), presumably because an initial addref was not done when loading the stylesheet failed.
Hardware: Macintosh → All
Summary: Crash in XULContentSinkImpl if stylesheet not found → Crash loading XUL if stylesheet not found
Improved summary.
Status: NEW → ASSIGNED
Target Milestone: M6
This looks like bug 2537.
Target Milestone: M6 → M10
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 2537 ***
Status: RESOLVED → VERIFIED
Status changed to Verified.
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.