Open Bug 1315595 Opened 5 years ago Updated 5 years ago

CSS rule objects should have wrapper cache


(Core :: DOM: CSS Object Model, defect, P3)




Tracking Status
firefox52 --- affected


(Reporter: xidorn, Unassigned)



Otherwise expando properties on the wrapper object of CSS rule objects will be lost after GC.

This is detectable by the following code:
1. document.styleSheets[0].cssRules[0].x = 1
2. (trigger a GC)
3. document.styleSheets[0].cssRules[0].x

In theory it should return 1, but it actually returns undefined.

But we currently cannot do that because CSS rules do not have WebIDL bindings...

Probably this is just a duplicate of bug 851892.
Priority: -- → P3
wrapper caching doesn't need webidl bindings. But sure, looks like bug 851892 will fix this.
You need to log in before you can comment on or make changes to this bug.