Open
Bug 761236
Opened 13 years ago
Updated 2 years ago
InvalidAccessError from cssRules.length
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
NEW
Webcompat Priority | P3 |
People
(Reporter: jwalker, Unassigned)
References
Details
Firebug is using CssLogic.jsm to display style information in it's new computed style view, but on page reload is getting the following error:
JavaScript error: resource:///modules/devtools/CssLogic.jsm, line 1042: InvalidAccessError: A parameter or an operation is not supported by the underlying object
The relevant line is basically 'return this.domSheet.cssRules.length;'
This does not appear to be a problem with CssLogic because we can force the error to happen by calling 'cssRules.length' directly from FireBug without touching CssLogic.
It does not appear to be a stale document handle, I've checked that the document being used here is the expected one.
Any help in debugging this problem would be appreciated.
Comment 1•13 years ago
|
||
You get NS_ERROR_DOM_INVALID_ACCESS_ERR if you try to read .cssRules on a stylesheet that's not done being parsed yet. That seems like the most obvious thing to be going on here.
Comment 2•13 years ago
|
||
Honza could fix this issue for Firebug at https://github.com/firebug/firebug/commit/e2c65385388ead9639624542d729810433fe506b by waiting for the "load" event to be fired.
Though the highlight() function of CssLogic.jsm should also be fixed to avoid others having the same problems.
Sebastian
Updated•9 years ago
|
See Also: → https://webcompat.com/issues/2441
Updated•3 years ago
|
Webcompat Priority: --- → ?
Comment 3•3 years ago
|
||
Not sure if this is still an issue, but the one case where it was broken got fixed by the site. We have not seen new reports for many years, so even if this still exists, it's low priority.
Webcompat Priority: ? → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•