Open Bug 1315595 Opened 3 years ago Updated 3 years ago

CSS rule objects should have wrapper cache

Categories

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

defect

Tracking

()

Tracking Status
firefox52 --- affected

People

(Reporter: xidorn, Unassigned)

References

Details

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.