gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Site Editor is empty in firefox

Open Sandstromer opened this issue 5 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Have you tried deactivating all plugins except Gutenberg?

  • [X] I have tested with all plugins deactivated.

Have you tried replicating the bug using a default theme e.g. Twenty Twenty?

  • [X] I have tested with a default theme.

Description

With the latest release 11.2.0 the Site Editor returns an empty white screen in Firefox browser. Chrome not affected.

Console shows error: "Uncaught (in promise) TypeError: e.current is undefined" /build/block-editor/index.min.js:81:23487

Step-by-step reproduction instructions

Activate a FSE/block based theme. Click 'Site Editor'. Notice the editor is completely empty.

Expected Behavior

The Site Editor to load.

Current Behavior

The Site Editor does not load.

Screenshots or screen recording (optional)

No response

Code snippet (optional)

No response

WordPress Information

5.8

Gutenberg Information

11.2.0

What browsers are you seeing the problem on?

Firefox

Device Information

Desktop

Operating System Information

Windows 10

Sandstromer avatar Aug 04 '21 13:08 Sandstromer

I confirm I have the same issue with Firefox on MacOS

youknowriad avatar Aug 04 '21 13:08 youknowriad

Note that I'm seeing the problem in Template editing mode in the post editor as well (when using Firefox).

It seems to be related to the iframe loading and ref issues in Firefox. I don't think the document load event callback that sets up the refs for Firefox (according to the code comment there) ever has a chance to execute before the error in useMultiSelection crashes the editor.

creativecoder avatar Aug 06 '21 17:08 creativecoder

I can also confirm I am getting the same issue in Firefox.  It works fine on both my local install and on server when use Safari or another browser.

karmatosed avatar Aug 07 '21 20:08 karmatosed