Page 1 of 1

Allow local links seems not to work any more

Posted: Wed Nov 23, 2016 10:03 am
by WaudelSepp
Since using NoScipt 2.9.5.1. the links to files / directories on our intranet are blocked.
Settings: allow local links in the settings, our intranet is a trusted page.

Re: Allow local links seems not to work any more

Posted: Sat Nov 26, 2016 12:34 am
by WaudelSepp
By the way: Mozilla applications block links to local files on their own.
http://kb.mozillazine.org/Firefox_:_Iss ... Don't_Work

Why doesn't NoScript support this method that allows to change this setting on a per-site basis using capability.policy.localfilelinks.sites?

Re: Allow local links seems not to work any more

Posted: Wed Nov 30, 2016 1:41 pm
by Hansl
It does: see viewtopic.php?f=7&t=19868#p70689
Just at the moment there seem to be a few difficulties with the latest changes in FF50 but I trust in Giorgio to resolve this.

Still: Allow local links seems not to work

Posted: Fri Dec 02, 2016 9:40 am
by WaudelSepp
I'm using Firefox 50.0.2 and I've just tested NoScript 2.5.9.2:
Local links do not work in our intranet and I have to use an older version of NoScript again.

Re: Still: Allow local links seems not to work

Posted: Fri Dec 02, 2016 9:50 am
by WaudelSepp
WaudelSepp wrote:I'm using Firefox 50.0.2 and I've just tested NoScript 2.5.9.2:
Local links do not work in our intranet and I have to use an older version of NoScript again.
Sorry it's the current version 2.9.5.2 (not 2.5.9.2).

Allow local links: o.k. in 2.9.0.14

Posted: Fri Dec 02, 2016 10:09 am
by WaudelSepp
More detailed description:

In our intranet pages with links to local files are created.
Example: file:///I:/.../EP000001201986B1.pdf

Since NoScript 2.9.5.1 nothing happens, when clicking at such a link.
Before it worked, if links to local files are allowed for trusted pages as our intranet is a trusted page ;)

I've just returned to NoScript 2.9.0.14 and the links to local files are working again as intended:
https://addons.mozilla.org/de/firefox/a ... n-2.9.0.14

So I think this is a problem in the new NoScript versions 2.9.5.1 and 2.9.5.2.
And it is not solved. At least it does not work for me (Windows 10 64-bit, Firefox 50.0.2 32-bit).

Re: Allow local links seems not to work any more

Posted: Fri Dec 02, 2016 11:49 am
by Hansl
See viewtopic.php?f=10&t=22308#p85113:
You need to set those five lines in prefs.js (specific for your web server, of course)

Code: Select all

user_pref("noscript.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
user_pref("capability.policy.localfilelinks.sites", "<your web server here>");
user_pref("capability.policy.policynames", "maonoscript localfilelinks");
user_pref("noscript.excaps", "false"); 
and UNCHECK the global NoScript Options|Advanced|Allow local links.

You may close FF for this and then edit its prefs.js and restart FF, or add them in FF as strings in about:config.

Perfect Solution: How to handle local links

Posted: Sat Dec 03, 2016 3:47 pm
by WaudelSepp
Thank you Hansl.

You suggestion works perfect and is much better than allowing local links in a global way.

I have used a similar method changing user.js:

Code: Select all

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites","Web-Server1 Web-Server2 ...");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
user_pref("network.proxy.type", 0);
But this did not work when using NoScript. And in the latest versions of NoScript also the work around (generally allow local links for trusted pages) did not work any more.

By the way. You wrote in your posting (link above):
Due to changes in FF 28 this also stopped working
.
At least in my case this has worked up to Firefox 50.0.2 and NoScrtipt < 2.9.5.1 (e.g. today with NoScript 2.9.0.14 before applying your fine solution).

Best regards,
Christian