Skip to content
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

Bug report: Failed to load icons on Firefox 68 #612

Closed
emc2314 opened this issue Aug 12, 2019 · 2 comments
Closed

Bug report: Failed to load icons on Firefox 68 #612

emc2314 opened this issue Aug 12, 2019 · 2 comments
Labels

Comments

@emc2314
Copy link

emc2314 commented Aug 12, 2019

Describe the bug
Icons are not shown when opening the local html. Instead it's replaced by ugly fonts.

To Reproduce
Steps to reproduce the behavior or a link to the recipe / input used to cause the bug:

  1. Just download and extract the zip and open html in firefox 68.

Expected behavior
Icons are shown correctly, e.g. star, save, load, save, open, undo etc.

Screenshots
image

Desktop (if relevant, please complete the following information):

  • OS: Windows 10 1903
  • Browser Firefox
  • Version 68.0.1

Additional context
The console says:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/username/AppData/Local/Cyberchef/assets/570eb83859dc23dd0eec423a49e147fe.woff2. (Reason: CORS request not http).

The firefox website says:

In response to CVE-2019-11730, Firefox 68 and later define the origin of a page opened using a file:/// URI as unique. Therefore, other resources in the same directory or its subdirectories no longer satisfy the CORS same-origin rule. This new behavior is enabled by default using the privacy.file_unique_origin preference.

@emc2314 emc2314 added the bug label Aug 12, 2019
@emc2314
Copy link
Author

emc2314 commented Aug 12, 2019

Of course we can fix this by disable the privacy.file_unique_origin preference. But is there a way to let new users not worry about that?

@j433866
Copy link
Member

j433866 commented Aug 13, 2019

Thanks for your bug report, this is now fixed in v9.0.6.
I've modified the webpack config so that the font used for the icons is inlined instead of being packaged as a separate file, so does not need to be loaded separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants