Closed Bug 168881 Opened 23 years ago Closed 23 years ago

No more syntax highlighting for XML files, possible crashes in nsContentDLF::CreateInstance

Categories

(Core Graveyard :: View Source, defect)

defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bzbarsky, Assigned: doronr)

Details

Attachments

(1 file)

I made a mistake in my fix for bug 77337 that breaks highlighting of XML... The problem is in nsContentDLF::CreateInstance. The code that loops over HTML types is fine, but we need to do typeIndex = 0; before looping over XML types (same for SVG and RDF). In fact, what we do now could lead to cool shit like crashing (and I would not be surprised if it has). I don't have a tree, so can't produce a patch based on the above information, but producing said patch should be a 2-minute job....
Attached patch patchSplinter Review
Summary: No more syntax highligting for XML files, possible crashes in nsContentDLF::CreateInstance → No more syntax highlighting for XML files, possible crashes in nsContentDLF::CreateInstance
Comment on attachment 99554 [details] [diff] [review] patch r/sr=rbs
Attachment #99554 - Flags: review+
Comment on attachment 99554 [details] [diff] [review] patch sr=jst
Attachment #99554 - Flags: superreview+
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
checked in
Timeless, thanks for doing that! (I thought I cced caillon and asked him to deal, but I guess I forgot...)
Verified the patch.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Product: SeaMonkey → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: