Closed Bug 273324 Opened 20 years ago Closed 20 years ago

Hang on unclosed comments in standards mode

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: mrbkap, Assigned: mrbkap)

References

()

Details

(Keywords: hang, regression)

Attachments

(1 file)

More fallout from bug 88952. I forgot a case where we call CCommentToken::Consume(), and so on the above page, we never call ConsumeText() (we just try to consume it as a comment over and over again).
Attached patch patch v1Splinter Review
Since I could, I also now set unterminated comments (in standards mode only) as in error in view-source. The specific fix for this bug is the block in nsHTMLTokenizer::ConsumeSpecial(). There are no other places that create comment tokens.
Severity: normal → critical
Status: NEW → ASSIGNED
Comment on attachment 167976 [details] [diff] [review] patch v1 Asking for r=. jst, if you feel like it, feel free to give r+sr=.
Attachment #167976 - Flags: review?(jst)
Comment on attachment 167976 [details] [diff] [review] patch v1 As a note, in my tree, I've removed the calls to SetInError(), because if the text following (in) the comment is longer than a packet, then the highlighting in view-source will be inconsistant (It'll be <red>&lt;!-- Blah blah</red> blah blah).
Comment on attachment 167976 [details] [diff] [review] patch v1 r=jst, but requesting sr from bz.
Attachment #167976 - Flags: superreview?(bzbarsky)
Attachment #167976 - Flags: review?(jst)
Attachment #167976 - Flags: review+
Comment on attachment 167976 [details] [diff] [review] patch v1 Looks reasonable. sr=bzbarsky
Attachment #167976 - Flags: superreview?(bzbarsky) → superreview+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: