"ASSERTION: How did we get this namespace?" querying selectorText of removed rule

NEW
Unassigned

Status

()

Core
CSS Parsing and Computation
9 years ago
9 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

({assertion, testcase})

Trunk
x86
Mac OS X
assertion, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

579 bytes, application/xhtml+xml
Details
(Reporter)

Description

9 years ago
Created attachment 419347 [details]
testcase

###!!! ASSERTION: How did we get this namespace?: 'mNameSpace == kNameSpaceID_Unknown || mNameSpace == kNameSpaceID_None', file /Users/jruderman/central/layout/style/nsCSSStyleRule.cpp, line 577
Do style rules need to hold on to their sheet after they're removed from it?  (At least we don't have to worry about them being put in a different sheet... I think.)
Right now nsCSSRule instances hold weak references to mSheet.  We could perhaps change this if we added cycle collection to rules and sheets...

I would also be happy to just silence the assertion in the !aSheet case; I don't think the "right" behavior is sufficiently clear here to really worry about it.
You need to log in before you can comment on or make changes to this bug.