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.