Closed Bug 52172 Opened 24 years ago Closed 24 years ago

Attempting to view contents of css file results in a crash

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: chrispetersen, Assigned: rickg)

References

Details

(Keywords: crash, Whiteboard: [nsbeta3+] fix waiting.)

Attachments

(3 files)

Build: 2000091108 Platforms: All Expected results: The contents of the css file should be displayed What I got: A crash occurs. Steps to reproduce: 1) Save attached css file to local drive. 2) Open css file in the browser 3) The crash should occur. 4) If you save the text version locally and open it in N6, the file's contents is displayed and no crash occurs.
Attached file A simple css file
Call Stack for windows crash: nsXMLContentSink::~nsXMLContentSink [d:\builds\seamonkey\mozilla\ layout\xml\document\src\nsXMLContentSink.cpp, line 170] CViewSourceHTML::WillBuildModel [d:\builds\seamonkey\mozilla\ htmlparser\src\nsViewSourceHTML.cpp, line 455] nsParser::WillBuildModel [d:\builds\seamonkey\mozilla\ htmlparser\src\nsParser.cpp, line 1381] nsParser::ResumeParse [d:\builds\seamonkey\mozilla\ htmlparser\src\nsParser.cpp, line 1849] nsParser::OnDataAvailable [d:\builds\seamonkey\mozilla\ htmlparser\src\nsParser.cpp, line 2326] nsDocumentOpenInfo::OnDataAvailable [d:\builds\seamonkey\mozilla\ uriloader\base\nsURILoader.cpp, line 252] nsFileChannel::OnDataAvailable [d:\builds\seamonkey\mozilla\ netwerk\protocol\file\src\nsFileChannel.cpp, line 680] nsOnDataAvailableEvent::HandleEvent [d:\builds\seamonkey\mozilla\ netwerk\base\src\nsAsyncStreamListener.cpp, line 406] nsStreamListenerEvent::HandlePLEvent [d:\builds\seamonkey\mozilla\ netwerk\base\src\nsAsyncStreamListener.cpp, line 106] PL_HandleEvent [d:\builds\seamonkey\mozilla\xpcom\ threads\plevent.c, line 590] _md_EventReceiverProc [d:\builds\seamonkey\mozilla\xpcom\ threads\plevent.c, line 1061] KERNEL32.DLL + 0x363b (0xbff7363b) KERNEL32.DLL + 0x242e7 (0xbff942e7) 0x00688b3e
Summary: Attempting view contents of css file results in a crash → Attempting to view contents of css file results in a crash
Rassign to rickg.
Assignee: clayton → rickg
This crasher is an easy fix. The css mimetype is not registered properly in LayoutLDF, and the parser needs to map it to plaintext. The fix is 2 lines, and zero risk.
Keywords: crash, nsbeta3
Whiteboard: [nsbeta3+]
Dont forget to change nsLayoutLDF, to map text/css to html.
Status: NEW → ASSIGNED
Marking that I have a fix waiting.
Whiteboard: [nsbeta3+] → [nsbeta3+] fix waiting.
*** Bug 51283 has been marked as a duplicate of this bug. ***
*** Bug 51835 has been marked as a duplicate of this bug. ***
Landed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Fixed in the Sept 14th build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: