altis-cms icon indicating copy to clipboard operation
altis-cms copied to clipboard

Local storage quota exceeded can crash editor

Open rmccue opened this issue 4 years ago • 1 comments

When opening Gutenberg in private browsing in Firefox, the local storage quota is much lower than usual. This can lead to the quota easily being exceeded.

In our editor settings override code, we override Gutenberg's settings. It's easily possible for this to hit and exceed the quota thanks to Pinpoint's use of local storage as well, and this throws a quota exception. The exception acts as an uncaught exception which then crashes Gutenberg into an unrecoverable state.

We need to catch these exceptions inside updateSettings.

rmccue avatar Jul 22 '20 11:07 rmccue

This may also be coming from the local storage preferences for A/B testing in the sidebar.

rmccue avatar Jul 22 '20 11:07 rmccue