-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Iframe: compat styles: check for ownerNode === null #46932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed some issues I was having in my local setup.
Size Change: +6 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Flaky tests detected in 165896d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3854568478
|
What?
When checking the ownerNode of a stylesheet, it may be null if the stylesheet was imported by another stylesheet. In that case we should return early.
See https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/ownerNode#notes.
Why?
Prevents an error.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast