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

[Obsolete] Trac 58978: Suppress console errors from sessionStorage usage in sandboxed post embed iframe #4965

Closed
wants to merge 1 commit into from

Conversation

westonruter
Copy link
Member

This simply moves the try/catch blocks from inside the if statements that reference sessionStorage to instead wrap these if statements.

Trac ticket: https://core.trac.wordpress.org/ticket/58978


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@westonruter
Copy link
Member Author

@westonruter
Copy link
Member Author

Humm. Somehow I pushed my branch this to origin by mistake when I meant to push it to my fork. (I'm surprised I was able to push to WordPress/wordpress-develop to begin with.) Going to create a separate PR because I suspect the branch will get blown away by the mirroring process.

@westonruter westonruter closed this Aug 3, 2023
@westonruter westonruter changed the title Trac 58978: Suppress console errors from sessionStorage usage in sandboxed post embed iframe [Obsolete] Trac 58978: Suppress console errors from sessionStorage usage in sandboxed post embed iframe Aug 3, 2023
@westonruter
Copy link
Member Author

@felixarntz here's another updated version: #4966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants