Local links now download to temporary folder

Ask for help about NoScript, no registration needed to post
Hansl
Junior Member
Posts: 28
Joined: Wed Apr 02, 2014 6:58 am

Local links now download to temporary folder

Post by Hansl »

I'm not sure whether this is an issue with NoScript or Firefox or just an obscure setting:
We use local links like   file:///S:/somepath/somedoc.odt    to documents on our local file server in web pages on our local web server.
These links used to directly open the documents on the file server as desired.
Since yesterday, they download the file to   %USER%\AppData\Local\Temp   and open it write protected from there so they cannot be edited and written back easily anymore.
The funny thing is, we have some Win10 machines which still open it from the server and others which now download to Temp, all current with NS 2.9.5.2 or FF 50.0.1 and I can't see the cause. Linux machines with FF 50 still open from the server.
We do not use NS's setting   Options|Advanced|Allow local links   for this, we do have in prefs.js (thanks to Giorgio) —

Code: Select all

user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
user_pref("capability.policy.localfilelinks.sites", "192.168.0.11 server1");
user_pref("capability.policy.policynames", "maonoscript localfilelinks");
user_pref("noscript.policynames", "localfilelinks"); 
user_pref("noscript.excaps", "false"); 
Any ideas ,someone?  (What does   "noscript.excaps"   do, anyway?)

Thanks, Hans
P.S. I've just noticed: Those downloading machines show the red blocking NS icon although our server1 IS allowed, and the NS icon's menu does not list server1 at all, neither for blocking nor for allowing. The “good” machines correctly show the blue NS icon and do list server1.
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Hansl
Junior Member
Posts: 28
Joined: Wed Apr 02, 2014 6:58 am

Re: Local links now download to temporary folder

Post by Hansl »

This might be connected to viewtopic.php?f=7&t=22355 and viewtopic.php?f=10&t=16994.
On the “bad” machines (downloading) NoScript shows the »blocked« icon and does not list the current local server, but it does allow (!) its scripts. This remains so even after resetting NoScript to its defaults. Image
On the “good” machines (opening from server) NoScript shows the »allowed« icon and does list the current local server and allows its scripts. This remains so even after resetting NoScript to its defaults (and re-allowing the local server).
After resetting both NoScript's exported settings are nearly identical (but only after sorting!), just differing in closing } in surrogate.imagebam.replacement and surrogate.skimlinks.sources.
Now I'm stumped:  both have the same hardware, the same quite fresh Win10, the same current FF 50.0.2, the same current NS 2.9.5.2. What the heck??
Their prefs.js are quite different though; grepping them for noscript gives no big differences:
the “good” one had an extra user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess"); adding this to the “bad” did not help (what is that about,anyway?);
the “bad” had an extra user_pref("noscript.ABE.migration", 1); deleting this did not help.

What now?
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Local links now download to temporary folder

Post by therube »

not sure whether this is an issue with NoScript or Firefox
On an affected browser/Profile/machine, disable NoScript & see.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 Lightning/.4.46
Hansl
Junior Member
Posts: 28
Joined: Wed Apr 02, 2014 6:58 am

Re: Local links now download to temporary folder

Post by Hansl »

Sorry for the delay, other trouble…
Disabled NoScript:  still downloading to Temp.
Started FF with -safe-mode:  still downloading to Temp.
So this seems not connected to NoScript.  But what then? And why is the local server not listed in NoScript?
Did a fresh clean install of FF with empty profile, just adding those five lines for local links in prefs.js:  still downloading to Temp. I'm stuck.
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Local links now download to temporary folder

Post by Thrawn »

I'm not sure what the problem is, especially if different machines are giving different results. But it appears to be unrelated to NoScript. For general Firefox debugging, you might find more people who can help you on mozillaZine.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Hansl
Junior Member
Posts: 28
Joined: Wed Apr 02, 2014 6:58 am

Re: Local links now download to temporary folder

Post by Hansl »

Posted over at http://forums.mozillazine.org/viewtopic ... #p14725328, no enlightenment yet.
Could this be some odd Win10 issue, not even a FF problem?  How does FF decide whether to download first (from a WWW http://… link) or just pass the file:///… link to the respective document editor?

I think now this is not caused by NoScript.  But NoScript, if installed, is affected in some mysterious way, too:  it does not recognize this local http://server1, see screenshot above.  On the “bad” (downloading) machines NoScript shows the »blocked« icon and does not list the current local server1, but it does allow its scripts.  server1 is not seen in NS's whitelist (NS preferences or about:config) and I also cannot add it manually in NS preferences. So, server1 is thoroughly ignored but allowed — huh?
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Post Reply