Skip to content

Font Library uploader apparently crashes with broken font files #59578

@peterwilsoncc

Description

@peterwilsoncc

Description

When a user attempts to upload a font file that is broken, the font library uploader tab apparently crashes.

Inspecting the console, an error is thrown but fails to be caught.

Step-by-step reproduction instructions

MacOS instructions

  1. Remove the first 100 bytes from a font file: tail -c +100 OpenSans-Bold.ttf > _broken-font.ttf
  2. Open the Font Library uploader tab via the site editor
  3. Attempt to upload the broken font file
  4. The uploader will show the upload progress bar for the foreseeable future

Screenshots, screen recording, code snippet

crash-uploader

Environment info

  • WordPress 6.4
  • Gutenberg trunk @ 619f0a3

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions