Open Bug 1315595 Opened 5 years ago Updated 5 years ago
CSS rule objects should have wrapper cache
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.cssRules.x = 1 2. (trigger a GC) 3. document.styleSheets.cssRules.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.
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.