-
Notifications
You must be signed in to change notification settings - Fork 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
Post Preview: Native preview crashes the editor (intermittent) #57128
Comments
#56980 introduced the native preview. |
I'm also able to reproduce on a vanilla install locally. It looks like it was introduced when Gutenberg first started iframing mobile/tablet previews. So it's likely this has been the core plugin for a few months, and just landed on wpcom recently when we switched over to the native preview. I've opened an issue in the core plugin repo: WordPress/gutenberg#35807 On the WPCOM side, this conversation is related to the overall switch to native previews: p58i-bmT-p2 |
- skip the test for desktops due to known issue: #57128 - implement preview methods in GutenbergEditorPage object.
- skip the test for desktops due to known issue: #57128 - implement preview methods in GutenbergEditorPage object.
…ile device. (#57132) * Re-add preview steps back to Editor: Basic Post: - skip the test for desktops due to known issue: #57128 - implement preview methods in GutenbergEditorPage object. * Update comments * Add JSDoc and method comments. * Move into the library implementation of `itif`. * Use `waitForSelector` when ensuring the preview menu pane is closed. * Skip post draft saving step if mobile.
Checked that this no longer occurs after upstream issue has been fixed. |
Quick summary
The native Gutenberg preview can crash the editor under certain circumstances.
Steps to reproduce
Preview
button.Mobile
orTablet
.Desktop
.What you expected to happen
The live preview shown in the Gutenberg editor should revert to the
Desktop
size, which occupies the full width of the editor.What actually happened
The editor crashes with the error:
The editor has encountered an unexpected error.
Screen.Recording.2021-10-18.at.2.45.26.PM.mov
Screen.Recording.2021-10-18.at.2.33.05.PM.mov
Context
#57014
Browser
Mozilla Firefox, Microsoft Edge
Simple/Atomic
Simple, Atomic
Other notes
Console error:
Post text:
Reproducibility
Consistent
Severity
Most (> 50%)
Available workarounds?
Yes, easy to implement
Workaround details
No response
The text was updated successfully, but these errors were encountered: