Page 1 of 2
Allow Font@ on specific whitelist domains?
Posted: Sat Mar 30, 2013 1:28 pm
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
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
Re: Allow Font@ on specific whitelist domains?
Posted: Mon Apr 01, 2013 9:19 am
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.
Re: Allow Font@ on specific whitelist domains?
Posted: Mon Apr 01, 2013 1:27 pm
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?
Re: Allow Font@ on specific whitelist domains?
Posted: Sat May 25, 2013 8:41 pm
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?
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Sep 25, 2013 3:59 am
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?
Re: Allow Font@ on specific whitelist domains?
Posted: Mon Sep 30, 2013 9:39 pm
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?
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 20, 2013 6:43 pm
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?
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 20, 2013 8:10 pm
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).
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 7:21 pm
by Giorgio Maone
Should have been fixed in
latest development build 2.6.8.6rc2, thanks.
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 7:34 pm
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
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 9:34 pm
by Giorgio Maone
Please check
latest development build 2.6.8.7rc1, thanks.
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 9:46 pm
by barbaz
Still doesn't work here, sorry.
Tested Fx 17 & SeaMonkey 2.22.1 on Ubuntu Linux
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 10:23 pm
by Giorgio Maone
Retry
latest development build 2.6.8.7rc2, thanks.
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Nov 27, 2013 11:00 pm
by barbaz
It's working now! Thanks a lot Giorgio.
Re: Allow Font@ on specific whitelist domains?
Posted: Wed Dec 04, 2013 2:29 pm
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!