Allow Font@ on specific whitelist domains?

Ask for help about NoScript, no registration needed to post
borg

Allow Font@ on specific whitelist domains?

Post by borg »

I have successfully enabled flash on many domains, but I'm really struggling with allowing fonts on this site: http://tvprofil.net/

Now I can temporarily allow fonts there by clicking temporarily allow

Code: Select all

Font@http://phazer.info
Note that fonts originate from other site.

But any font rule I write in about:config rule noscript.allowedMimeRegExp is not honored at all and I've tried it in so many ways I don't even remember... I've read noscript faq, features page and many forum links before. If anyone can help, I'll appreciate.

Thanks
Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allow Font@ on specific whitelist domains?

Post by Thrawn »

I don't think that Font is a recognised content type. When it appears in the Blocked Objects menu, it shows up as Unknown.
Mozilla/5.0 (Linux; U; Android 2.2.1; en-gb; GT-S5570 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
borg

Re: Allow Font@ on specific whitelist domains?

Post by borg »

Thanks for answering.
I don't understand what do you mean by "Fonts are shown as unknown in blocked objects menu". At my place Fonts do appear in the Blocked Objects menu as: Temporarily allow Font@http://phazer.info and I can do that.

So it turns out, we can temporarily enable downloadable fonts on specific domains, but there is no setting or white-list to make it permanent, not even in about:config? Is this missing feature maybe planned in the future?
Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0
BC

Re: Allow Font@ on specific whitelist domains?

Post by BC »

I have exactly the same problem with netvibes.com.

Why is there an option to allow it temporarily, but no possibility to save this choice?
Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

*Bump*

NS 2.6.8.2rc1, SeaMonkey 2.21. I can't get this to work either. I want to permanently whitelist all PDF documents and the web font on Github but don't seem to be able to permanently allow that font. Following the example on the NoScript page, I set my noscript.allowedMimeRegExp to

Code: Select all

application/pdf FONT@https://github\.global\.ssl\.fastly\.net
but it's acting like it's just "application/pdf". What am I doing wrong?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 SeaMonkey/2.21
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

I can't be 100% sure but I think it's a code issue in NoScript (Policy.js). It looks like NS is supposed to pass "mimeKey" (which could be "Font" or other special identifier, or failing that, the guessed MIME type) to tests of the "allowedMimeRegExp" preference, but it's really passing "aMimeTypeGuess || mimeKey", thus ignoring any special types. If there's some reason NS shouldn't only check mimeKey, it should see if mimeKey matches aMimeTypeGuess, and if not, check them separately.

Also, it seems from the code that the program looks for "Font" in allowedMimeRegExp rather than "FONT" as documented... I find that hard to believe... Giorgio, what am I missing here?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 SeaMonkey/2.21
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

Bump

What are the current plans for fixing this bug? Is this going to be fixed soon or is it low-priority/farfuture?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow Font@ on specific whitelist domains?

Post by Giorgio Maone »

barbaz wrote:What are the current plans for fixing this bug? Is this going to be fixed soon or is it low-priority/farfuture?
To be fixed, thank you. (Slipped out of the radar so far).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow Font@ on specific whitelist domains?

Post by Giorgio Maone »

Should have been fixed in latest development build 2.6.8.6rc2, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

Well, the menu looks better, but sorry, this bug is not fixed.

noscript.allowedMimeRegExp set to

Code: Select all

application/pdf application/x-shockwave-flash@https?://(?:www\.)?deeplinkradio\.com FONT@https://github\.global\.ssl\.fastly\.net
doesn't automatically allow the Github font.
Test page
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow Font@ on specific whitelist domains?

Post by Giorgio Maone »

Please check latest development build 2.6.8.7rc1, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

Still doesn't work here, sorry.
Tested Fx 17 & SeaMonkey 2.22.1 on Ubuntu Linux
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow Font@ on specific whitelist domains?

Post by Giorgio Maone »

Retry latest development build 2.6.8.7rc2, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
barbaz
Senior Member
Posts: 11070
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow Font@ on specific whitelist domains?

Post by barbaz »

It's working now! Thanks a lot Giorgio.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1
dajo

Re: Allow Font@ on specific whitelist domains?

Post by dajo »

Hi,

I was just wondering, are there any plans to add "Always allow X@Y" next to "Temporarliy allow X@Y", instead of having to manually add a regexp to allowedMimeRegExp?

... and thanks for an awesome addon!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0
Post Reply