Closed Bug 1861196 Opened 2 years ago Closed 2 years ago

No funciona desactivar "Permitir a las páginas elegir sus propias tipografías, en vez de la selección anterior"

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 119
defect

Tracking

()

RESOLVED DUPLICATE of bug 1863574

People

(Reporter: rolandodanielcf, Unassigned)

References

Details

Attachments

(7 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Steps to reproduce:

I disabled the "Allow pages to choose their own typefaces" option in my browser and set my default fonts to serif and sans serif. This allows me to view websites using my preferred local font.

Actual results:

I no longer see my local fonts on web pages as I browse them.

Expected results:

If "Allow pages to choose their own fonts, instead of the previous selection" is disabled, the page font will change.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

The problem is connected to Setup > Typography

Hi Rolando - thanks for the bug report. I have a few questions for you:

(1) When you say "I no longer see my local fonts on web pages as I browse them" -- just to be extra clear, are you saying that you're expecting Firefox to render all sites using Calibri (the font that you chose in your screenshot), and Firefox is failing to do that? (with the "Allow pages..." checkbox un-checked)

(2) Just to have a specific reasonably-simple website (or two) to be looking at here -- can you confirm whether this issue affects e.g. https://example.org (simple/small page with a specified font-family), and https://www.gutenberg.org/cache/epub/1513/pg1513-images.html (simple page with no specified font-family)?

(3) Are you by any chance running Firefox in Private Browsing mode, or in "Never remember history" mode? (If you're running in either of those modes, then bug 1849903 is probably related here.)

(4) When you've got your configuration such that this bug is reproducing: could you try visiting about:config and setting the preference privacy.fingerprintingProtection.pbmode to false, and then restart Firefox, and see if this bug's behavior changes at all?

Flags: needinfo?(rolandodanielcf)

Hello, thanks for responding. Here are my answers to your questions:

  1. Yes, that's what I did before. Firefox showed the web pages using the font I selected.

  2. Yes, both suggested websites have the same issue.

  3. I've used Firefox for years now and I always browse without saving my history. This means that the program deletes my history every time I exit, except for certain cookies from specific websites that I've allowed.

  4. Despite disabling the privacy.fingerprintingProtection.pbmode flag, I'm still experiencing the same issue.

Translated with www.DeepL.com/Translator (free version)

Flags: needinfo?(rolandodanielcf)
Depends on: 1863574

Thanks for the reply. A few thoughts:
(1) It's odd that the about:config flag didn't help -- just to double-check, did you restart Firefox after setting that flag to false? A browser restart is required for it to take effect.

(If that didn't help, then there's something mysterious going on. Regardless of that, I suspect this is at least partly related to our font-fingerprinting-protection -- I can reproduce something like this issue with a slightly-different setup, and I thing we should add an exception for this case -- I filed bug 1863574 on that.)

(2) Just to be extra-sure, is Calibri the actual font that you're trying to use here, or was that just an example in your screenshot? I ask because Calibri is part of standard-font-list since it's available by-default on Windows, and it's surprising that you would see any recent behavior-change with it. (Unless perhaps you've installed additional custom versions of Calibri beyond what ships with Windows). For what it's worth, I just tested on Windows 11 with Calibri selected in the same dialog that you screenshotted (with "Allow websites..." unchecked), and I wasn't able to reproduce the issue.

(3) Would you mind testing in a newly-created Firefox profile, and see if you can reproduce the issue there? See https://support.mozilla.org/es/kb/usar-el-administrador-de-perfiles-para-crear-y-eli#w_administrar-perfiles-cuando-firefox-este-abierto for instructions in Spanish for how to create one, and then you can click the "Launch profile in new browser" button once you've created one. (Note: your newly-created Firefox profile will automatically become your default profile -- so after you create it, you will want to click "Set as default" on your original Firefox profile on that profile-manager page.)

Thank you!

Sorry, one more request:
(4) Could you try reproducing the issue at https://www.gutenberg.org/cache/epub/1513/pg1513-images.html and check Firefox DevTools to see what font is actually being used?

To do that, right-click some bit of text and choose "Inspect", and then choose the dropdown-menu at the right edge of the toolbar (see red circle in my screenshot) and choose "Fonts", and then see what Firefox reports for "Fonts used" and "All Fonts on page" (red rectangles in my screenshot here). Note, "All fonts on page" has a > arrow that you have to click to expand it.

Once you've done that, please let us know what it says, and/or attach a screenshot like this one that clearly shows the fonts being used.

(As you can see in this screenshot here: on my system, Firefox is indeed rendering Calibri as-expected -- i.e. I still haven't been able to reproduce your exact issue. My setup so far is: I requested Calibri as shown in your screenshot, I unchecked "Allow sites...", and I chose "History: Never remember history" and restarted Firefox to let that take effect.)

(In reply to Daniel Holbert [:dholbert] from comment #6)

Thanks for the reply. A few thoughts:
(1) It's odd that the about:config flag didn't help -- just to double-check, did you restart Firefox after setting that flag to false? A browser restart is required for it to take effect.

(If that didn't help, then there's something mysterious going on. Regardless of that, I suspect this is at least partly related to our font-fingerprinting-protection -- I can reproduce something like this issue with a slightly-different setup, and I thing we should add an exception for this case -- I filed bug 1863574 on that.)

(2) Just to be extra-sure, is Calibri the actual font that you're trying to use here, or was that just an example in your screenshot? I ask because Calibri is part of standard-font-list since it's available by-default on Windows, and it's surprising that you would see any recent behavior-change with it. (Unless perhaps you've installed additional custom versions of Calibri beyond what ships with Windows). For what it's worth, I just tested on Windows 11 with Calibri selected in the same dialog that you screenshotted (with "Allow websites..." unchecked), and I wasn't able to reproduce the issue.

(3) Would you mind testing in a newly-created Firefox profile, and see if you can reproduce the issue there? See https://support.mozilla.org/es/kb/usar-el-administrador-de-perfiles-para-crear-y-eli#w_administrar-perfiles-cuando-firefox-este-abierto for instructions in Spanish for how to create one, and then you can click the "Launch profile in new browser" button once you've created one. (Note: your newly-created Firefox profile will automatically become your default profile -- so after you create it, you will want to click "Set as default" on your original Firefox profile on that profile-manager page.)

Thank you!

Ok. I did this:

  1. I'd restart the browser after flase the privacy.fingerprintingProtection.pbmode flag.
  2. I'd use Calibri as an example. I really used https://www.fonts4free.net/laffayette-comic-pro-font.html .
  3. I didn't this yet. I have not much time to understand it (seems simple, but not for me now, sorry), but I'll do.
  4. ... Please, wait while I try find how attach images to these messages...

Actually the font I'd used since many time ago (1 year maybe).

Screenshot of inspector. Look at bottom message. What is it?

Aha, does the issue go away if you toggle privacy.fingerprintingProtection to false as well? (Just asking for diagnostic purposes.)

Alternately, things should probably start working for you if you do the following:

  • In about:config, create a new preference named privacy.fingerprintingProtection.overrides. (That preference doesn't exist, you have to paste that name into the about:config searchbar and then click the "+" icon to create a new preference with that name)
  • Choose type "String" for the new preference when prompted
  • give it this exact value, including the leading dash:
    -FontVisibilityLangPack

I'm pretty sure that should make this work for you, regardless of whether you have true or false for the other fingerprintingProtection preferences. (It does mean you will be slightly-more-fingerprintable because websites can do some level of which-font-are-you-using-to-render-this-site checks, but that's unavoidable if you want websites to render with a custom font.)

And my above-linked Bug 1863574 should eventually make this Just Work without requiring you to create that about:config preference.

(In reply to Rolando Daniel from comment #8)

  1. I didn't this yet. I have not much time to understand it (seems simple, but not for me now, sorry), but I'll do.

No need to do the fresh profile anymore -- things make sense now that you've clarified which actual font was involved here (in particular, that it's a font you installed yourself rather than a default font like Calibri).

(In reply to Rolando Daniel from comment #10)

Screenshot of inspector. Look at bottom message. What is it?

Thanks! Yeah, that bottom message confirms that this is indeed the font-fingerprinting-protection kicking in -- Firefox is blocking this site from rendering with that "non-standard" local font, in an attempt to make you indistinguishable from other users who don't have that font installed. Of course, this is silly since you have explicitly asked Firefox to use that font everywhere. So, bug 1863574 is filed on improving things here.

(In reply to Daniel Holbert [:dholbert] from comment #12)

Aha, does the issue go away if you toggle privacy.fingerprintingProtection to false as well? (Just asking for diagnostic purposes.)

YES! It works!

Great, thanks for confirming that! So at this point I think bug 1863574 gets directly to the root issue and possible-fix here, so I'm going to mark this bug as a duplicate of that one and hopefully we can get a fix landed over there at some point.

In the meantime: for yourself, I'd suggesting restoring your about:config fingerprinting preferences to however you want them (e.g. you can opt in to additional protections via privacy.fingerprintingProtection=true again if you'd like, and you can restore privacy.fingerprintingProtection.pbmode to its default "true" value) -- and then, to avoid this bug, you probably want to create a new about:config preference to specifically opt-out of the font-visibibility-protections (without turning off other fingerprinting protections), as discussed in comment 13.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1863574
Resolution: --- → DUPLICATE

(In reply to Daniel Holbert [:dholbert] from comment #18)

Great, thanks for confirming that! So at this point I think bug 1863574 gets directly to the root issue and possible-fix here, so I'm going to mark this bug as a duplicate of that one and hopefully we can get a fix landed over there at some point.

In the meantime: for yourself, I'd suggesting restoring your about:config fingerprinting preferences to however you want them (e.g. you can opt in to additional protections via privacy.fingerprintingProtection=true again if you'd like, and you can restore privacy.fingerprintingProtection.pbmode to its default "true" value) -- and then, to avoid this bug, you probably want to create a new about:config preference to specifically opt-out of the font-visibibility-protections (without turning off other fingerprinting protections), as discussed in comment 13.

*** This bug has been marked as a duplicate of bug 1863574 ***

Thanks for your help. I did it so and browser works right.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: