Closed Bug 170699 Opened 23 years ago Closed 23 years ago

[CRASH] CSSRule.parentRule crashes on a style rule inserted in a media rule

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: glazou, Assigned: dbaron)

References

()

Details

(Keywords: testcase, Whiteboard: [patch])

Attachments

(1 file)

The attached URL crashes Mozilla (tested Win2k and RH72). It inserts a new style rule in an existing media rule and then queries for the parent rule of the style rule. Expected result : the media rule Actual result : crack boom core dump (Nota bene : this blocks CaScadeS)
Attached patch patchSplinter Review
I chose this fix rather than changing SetParentRuleReference because I'm worried that some compilers might do an adjustment on the null by mistake. (I recall CodeWarrior doing it when constant-folding -- someone wrote a null-based table-driven QI that worked on CodeWarrior, but I'm not sure if it would do the same thing at runtime.)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.2beta
Keywords: testcase
Fix checked in to trunk, 2002-10-02 18:02 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
checked the testcase mentioned in the url on win2000 -------- 2002-10-03-08trunk RH linux7.2 ---- 2002-10-03-08trunk there is no crash. Marking verified.
Status: RESOLVED → VERIFIED
--> nsbeta1
Keywords: nsbeta1
The testcase is still crashing the win2k branch build. I checked on the 2002-10-28-12-1.0 branch build on win2000. The trunk build looks good. What are the plans for this patch to be checked in branch ???
It's simple enough that we might as well... I've requested driver approval.
that would be great . Thanks Boris!!
adt would take this on the branch if drivers approve. Please add the fixed1.0.2 keyword if it gets checked in.
Keywords: adt1.0.2+
removing adt markings, please renominate if you get drivers approval.
Keywords: adt1.0.2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: