Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print code throws trying to access stylesheet internals #7752

Closed
bmblb opened this issue Oct 27, 2023 · 0 comments
Closed

Print code throws trying to access stylesheet internals #7752

bmblb opened this issue Oct 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@bmblb
Copy link

bmblb commented Oct 27, 2023

If stylesheet is loaded with certain CORS rules, reading link.sheet?.cssRules.length will throw:

image

Accessing stylesheet internals may be blocked by browser for security reasons. Therefore we need a different way to tell if stylesheet is loaded. Maybe just sheet is enough.

@bmblb bmblb added the bug Something isn't working label Oct 27, 2023
@bmblb bmblb self-assigned this Oct 27, 2023
@bmblb bmblb added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Oct 27, 2023
@bmblb bmblb added this to the 5.6.1 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant