Closed Bug 581579 Opened 15 years ago Closed 15 years ago

missing UngetToken() call when looking for declaration terminator

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dbaron, Assigned: zwol)

References

Details

(Keywords: css2)

Attachments

(1 file, 1 obsolete file)

There's a missing UngetToken call in the CSS parser's ParseDeclaration method. It's present both before and after the refactoring in bug 569719 patch 10. Simple testcase is: <!DOCTYPE html> <style> p { color: fuchsia ! important {; color: red } </style> <p>This should not be red or fuchsia (but it's red).</p> We should fall into {-matching, but we don't since we didn't call UngetToken() on the { token.
Depends on: 569719
Attached patch patch (depends on bug 569719) (obsolete) — Splinter Review
Pretty easy to fix post-569719. I expanded your test case a little.
Assignee: dbaron → zweinberg
Status: NEW → ASSIGNED
Attachment #460388 - Flags: review?(dbaron)
Comment on attachment 460388 [details] [diff] [review] patch (depends on bug 569719) r=dbaron
Attachment #460388 - Flags: review?(dbaron) → review+
In the first version of this patch I forgot to add the new test to the appropriate reftest.list. That's the only change.
Attachment #460388 - Attachment is obsolete: true
Attachment #462231 - Flags: review+
Attachment #462231 - Flags: approval2.0?
Attachment #462231 - Flags: approval2.0? → approval2.0+
Status: ASSIGNED → RESOLVED
Closed: 15 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: