搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Request for font "xxx" blocked at visibility level 2 (requires 3) in nightly

more options

My browser could only display the standard system fonts (such as Microsoft YaHei and Consolas), but not the fonts I installed. I was getting 'Request for font "xxx" blocked at visibility level 2 (requires 3)' from the console on every website that tried to use my local fonts.

The problem appeared in obstacle removal mode, but didn't appear in the latest stable Firefox release.

Version: nightly 120.0a1(20231006152733) System: Windows 11 22H2 22621.2134

English is not my first language, so please forgive me if it doesn't make sense.

My browser could only display the standard system fonts (such as Microsoft YaHei and Consolas), but not the fonts I installed. I was getting 'Request for font "xxx" blocked at visibility level 2 (requires 3)' from the console on every website that tried to use my local fonts. The problem appeared in obstacle removal mode, but didn't appear in the latest stable Firefox release. Version: nightly 120.0a1(20231006152733) System: Windows 11 22H2 22621.2134 ''English is not my first language, so please forgive me if it doesn't make sense.''

被選擇的解決方法

This is fingerprint protection caused by Enhanced Tracking Protection set to Strict or Custom with "Suspected fingerprinters" enabled.

從原來的回覆中察看解決方案 👍 11

所有回覆 (4)

more options

選擇的解決方法

This is fingerprint protection caused by Enhanced Tracking Protection set to Strict or Custom with "Suspected fingerprinters" enabled.

more options

Is there a way to exempt certain fonts from this?

For context, I have a userContent.css file which overrides the monospace font used in `code` and `pre` elements with a different font I have installed locally, which has now stopped working because I also have the enhanced tracking protection stuff enabled. Tbh I have no idea how this system works internally, but I feel like there should be a distinction between a website trying to access a local font (in which case it might be fingerprinting, and thus should be viewed with suspicion), and the userContent stylesheet trying to access a local font (in which case it clearly isn't fingerprinting, since the user intentionally created/edited the userContent file, and explitly put that font name in there).

由 hey10 於 修改

more options

Fingerprint protection is all about uniformity so creating exemptions for specific fonts would defeat any benefit. You should assume that font overrides or userContent.css can be detected by sites in some way, whether directly or indirectly.

You can disable font protection by going to about:config and changing privacy.fingerprintingProtection.overrides to -FontVisibilityBaseSystem,-FontVisibilityLangPack.

more options

Would it not be possible for the browser to distinguish between the CSS requesting the font or some evil script asking for it?