Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 568794 - "Allow pages to choose their own fonts" should be a per-site preference.
: "Allow pages to choose their own fonts" should be a per-site preference.
Product: Firefox
Classification: Client Software
Component: Preferences (show other bugs)
: unspecified
: x86 Linux
: -- enhancement with 9 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: [Limited availability until Oct 31] Jared Wein [:jaws] (please needinfo? me)
Depends on:
  Show dependency treegraph
Reported: 2010-05-28 05:02 PDT by Screwtape
Modified: 2012-08-30 14:09 PDT (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Screenshot of GitHub with "allow pages to choose their fonts" disabled (50.93 KB, image/jpeg)
2012-07-06 15:54 PDT, Juan Francisco Cantero Hurtado
no flags Details

Description Screwtape 2010-05-28 05:02:47 PDT
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a5pre) Gecko/20100527 Minefield/3.7a5pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a5pre) Gecko/20100527 Minefield/3.7a5pre

For a very long time, web sites have been limited to the short list of fonts widely available, with the result that no matter how many lovely fonts a user might install on their computer, web-pages always render with the clunkiest and mediocre fonts available.

Enter the "Allow pages to choose their own fonts" checkbox. I can select an attractive and well-rendered default (such as Lucida Grande on OS X, or Droid Sans on Linux) and relax in typographic comfort.

However, modern versions of Firefox support web-fonts. Page authors who care can set their pages to use even better, more appropriate fonts than my default, and every time I view such a page (admittedly, most such pages are "look at this demonstration of web-fonts") I have to trek into a Preferences sub-dialog to tick that checkbox, trek all the way back, look at the page, then repeat the process to untick the box again (If I just left it ticked all the time, I'd still be visually assaulted by the works of less-conscientious page authors).

A more concrete rationale is that I believe the FreeType authors haven't put much effort into hardening their rendering engine against arbitrary untrusted data; more security conscious individuals might want to leave the feature disabled in general, but allow it for trusted sites.

I believe that "allow pages to choose their own fonts" should be a per-site preference in the Page Info window, along side "Load images", "Open Pop-up Windows" and "Set Cookies".

Reproducible: Always

Steps to Reproduce:
1. Visit a site that demonstrates webfont usage.
2. Open Page Info window.
3. Switch to "Permissions" tab.
4. Look for "Allow Custom Fonts" setting.
Actual Results:  
No per-site custom-fonts setting.

Expected Results:  
A per-site setting that determines whether the site is allowed to use fonts that aren't the default set by the user.
Comment 1 Ria Klaassen (not reading all bugmail) 2010-05-30 00:39:43 PDT
My old Prefbuttons extension has a button to show the original font on click.
Not sure if this version still has the feature.
Comment 2 Juan Francisco Cantero Hurtado 2012-07-06 15:51:54 PDT
I know that the bug is old but I think that this bug remains important.

These days, some designers are using webfonts for icons, and for people with the option "allow pages to choose their fonts", this breaks these web pages. GitHub is a example of this problem. 

I know that to use a webfont for icons is a very bad practice and breaks the accessibility of the web pages, but I can't change the brain of these designers, so I need this option.

I'll attach a screenshot of the github, the problem is very annoying. I don't want blame only to github. but their web is a good example.

I'm not the only with this problem . Also, other users complained about of this when github changed to webfonts for icons, but github removed the comments, so I can't show you a screenshot with the complains of the users.
Comment 3 Juan Francisco Cantero Hurtado 2012-07-06 15:54:55 PDT
Created attachment 639841 [details]
Screenshot of GitHub with "allow pages to choose their fonts" disabled
Comment 4 mattengi 2012-08-30 14:09:07 PDT
I love this "allow pages to choose their fonts" feature. But it would be better get per site settings

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