Hi
NoScript forbids @font-face because a maliciously crafted font could exploit the font parsers that are rather old. Indeed, there has been such a vulnerability, see MFSA 2010-08: WOFF heap corruption due to integer overflow (see also hackademix.net » Why NoScript Blocks Web Fonts).
But is this precaution still necessary? With Firefox 3.6.13, Firefox has added the OTS font sanitizer, see MFSA 2010-78: Add support for OTS font sanitizer. This means that potentially vulnerable parts of fonts are blocked. Would this not mean that it is now safe for NoScript to switch on @font-face support by default?
--
grüess
mach
forbid @font-face still necessary?
forbid @font-face still necessary?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Re: forbid @font-face still necessary?
IMHO, a good opportunity for NoScript 3 which won't work on Firefox versions without the OTS.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Re: forbid @font-face still necessary?
Hi,
Do you know how to detect users with noscript extensions which are blocking web fonts (e.g. loaded from googleusercontent.com)?
Since many noscript users do not know that fonts get blocked by this extension it seems to be the webdesigner's task to create a workaround for it.
Thanks for your hints!
Do you know how to detect users with noscript extensions which are blocking web fonts (e.g. loaded from googleusercontent.com)?
Since many noscript users do not know that fonts get blocked by this extension it seems to be the webdesigner's task to create a workaround for it.
Thanks for your hints!
Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: forbid @font-face still necessary?
Why? Don't they already provide a fallback for browsers not supporting this feature, and any browser displaying the text anyway with the default font?schisch wrote:it seems to be the webdesigner's task to create a workaround for it.
However, if you've got scripts enabled on the main page, you can use window.getComputedStyle("#some-test-element-with-styled-text", "").width to check for differences between your preferred font and fallbacks.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Re: forbid @font-face still necessary?
What workaround?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0