Page 1 of 1

Bug - font-face blocking breaks NoScript toolbar icon

Posted: Mon Feb 04, 2013 4:45 pm
by sjorford
I have a bizarre bug with the NoScript icon. When I open http://www.sonsofnoelandadrian.co.uk/, the NoScript icon on the Firefox toolbar goes from:
http://s256.beta.photobucket.com/user/s ... d.png.html
to
http://s256.beta.photobucket.com/user/s ... d.png.html

(screenshots from testing on Firefox Nightly 21.0a1, but I have also reproduced on current Beta and Release versions)

I have NoScript set to:
* Scripts Globally Allowed
* Embeddings: Forbid @font-face
* Apply these restrictions to whitelisted sites too

It just seems to be the font, not Flash or anything - I've reduced the affected page to:

Code: Select all

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Font test</title>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<p style="font-family: 'Oswald', helvetica, arial;">Test</p>
</body>
</html>
and still get the bug.

Only the display of the icon is affected - clicking anywhere in that mass of icons opens up the NoScript menu as expected:
http://s256.beta.photobucket.com/user/s ... e.png.html

Error Console:

Code: Select all

Timestamp: 04/02/2013 16:40:37
Error: downloadable font: download not allowed (font-family: "Oswald" style:normal weight:normal stretch:normal src index:2): content blocked
source: .....
(the forum anti-spam filter is stopping me putting the rest of the error message in!)

Tested with NoScript 2.6.4.4rc3, with a brand new Firefox profile with no other extensions installed.

Re: Bug - font-face blocking breaks NoScript toolbar icon

Posted: Mon Feb 04, 2013 5:01 pm
by therube
Confirmed.

Don't think the font-face has any bearing?
(Well, perhaps it does, but its setting in NoScript seems to have no bearing?)

Simply Allow Globally.

Code: Select all

Error: downloadable font: download not allowed (font-family: "Oswald" style:normal weight:normal stretch:normal src index:2): content blocked
source: http://themes.googleusercontent.com/static/fonts/oswald/v7/-g5pDUSRgvxvOl5u-a_WHw.woff
Source File: http://fonts.googleapis.com/css?family=Oswald:400,700
Line: @font-face {   font-family: "Oswald";   font-style: normal;   font-weight: 400;   src: local("Oswald Regular"), local("Oswald-Regular"), url("http://themes.googleusercontent.com/static/fonts/oswald/v7/-g5pDUSRgvxvOl5u-a_WHw.woff") format("woff"); }
Source Code:
@font-face {   font-family: "Oswald";   font-style: normal;   font-weight: 400;   src: local("Oswald Regular"), local("Oswald-Regular"), url("http://themes.googleusercontent.com/static/fonts/oswald/v7…
(SeaMonkey looks not to be affected. NoScript icon goes onto the [real] Status Bar in SeaMonkey.)

FF is affected regardless of the "bar" the NoScript icon is placed (Navigation, Addon, Menu ...).