zkparty / trusted-setup-frontend

The KZG Ceremony web browser implementation
https://ceremony.ethereum.org
229 stars 66 forks source link

Font Decoding Bug/Error #120

Closed CarlBeek closed 1 year ago

CarlBeek commented 1 year ago

It appears there is something wrong with the font being imported. In particular, there appears to be a decoding error:

Firefox console:

downloadable font: rejected by sanitizer (font-family: "text-security-disc" style:normal weight:400 stretch:100 src index:0) source: https://ceremony.ethereum.org/static/media/text-security-disc.9f5e7b99e38f4dc390d9.woff2

Chrome console:

Failed to decode downloaded font: https://ceremony.ethereum.org/static/media/text-security-disc.9f5e7b99e38f4dc390d9.woff2
NicoSerranoP commented 1 year ago

This is related to #119 right? I just noticed that the console errors were caused by a server configuration (checkout this answer).

I just added the woff2 and otf file types and it seems that the console errors dissapeared. I couldn't replicate the bug in #119 but I have the feeling that it might be related to network connection.

To hide the text input and avoid browsers asking to save the field as password, we decided to use a custom font family "text-security-disc". It may take a couple of seconds to change between font families if the connection is slow.

CarlBeek commented 1 year ago

Yup, I agree #119 could be the result of issues. Thanks for adding the file types. Closing this for now. 👍