WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.47k stars 4.18k forks source link

Block Editor: Scrolling through Patterns crashes page on iOS Safari #44903

Open zaguiini opened 2 years ago

zaguiini commented 2 years ago

Description

Scrolling through the patterns on iOS 16's Safari intermittently crashes Gutenberg. Sometimes the page refreshes on its own, and sometimes the page just breaks with a black screen as a result.

Step-by-step reproduction instructions

  1. Open the site editor. It's easier to reproduce in FSE but it also sometimes happens in the post/page editor as well;
  2. Try to add a pattern;
  3. Scroll through the patterns list, while changing the category once in a while.

After a few tries, it fails. Sometimes the page refreshes, and sometimes the page crashes. I tried reproducing this on MacOS Safari without success. I've tried to attach the iPhone debugger to MacOS Safari, but didn't see any error message when the page crashed.

Screenshots, screen recording, code snippet

https://user-images.githubusercontent.com/26530524/195402218-23ae1b21-4550-4619-86ba-25b7e2ba05b5.mp4

Environment info

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

ellatrix commented 1 year ago

Do you still run into this problem with WP 6.3? It would be cool if you could connect your phone to desktop Safari and check the console to see what errors are occurring. I can't reproduce it here.