Steps to reproduce
- Go to https://webkit.org/blog/
- Open the developer console.
- Enter
document.styleSheets[1].cssRules
.
What happens
It throws a security error:
SecurityError: The operation is insecure.
What should happen
Something less serious, maybe?
Tries in other browser
- In WebKit (tried with epiphany) it just returns
null
- In Chromium it throws:
Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules at <anonymous>:1:25