Firefox 1.5 is out and has broken the check checkloadurl option that I previously used to access local files. By default firefox will not let you open local files defined by the file:// protocol in the url.
This page proposes a fiddly solution involving editig user.js files but the following also appears to work:
- go to about:config
- find the term network.automatic-ntlm-auth.trusted-uris and edit it
- enter the address of your intranet site, e.g. http:://intranet.bigco.com (this threw me for a bit, I though you had to put the file:// link in here but it's the originating web site that you are trusting).
Credit to whoever mentioned this method in the comments to Firefox intranet problem.
UPDATE: this may only work if you log into the windows domain, otherwise you have to use the fiddly solution (editing files, no gui
).
To summarise the fiddly solution, edit/create a user.js file in your firefox profile directory and put this in it:
user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "http://intranet.bigco.com"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
where intranet.bigco.com is the url of your intranet.
If you don't know where your firefox profile directory is then look here.
Twitterings

I am trying to use the following code in FF and I have used your techniques to enable external file links.
<html> <head> <script language="javascript"> var a_sURL = "file:\/\/\/\\\\rajatism1\\test\\"; function ldLnk() { try { alert(a_sURL); window.location.href = a_sURL; } catch(e){ alert("An exception occurred in the script. Error name: " + e.name + ". Error message: " + e.message); } } </script> </head> <body onload="ldLnk()"> <body> </body> </html>It fails with 0x80004005 (NS_ERROR_FAILURE) nsIDomLocation.href - any idea on what I may be doing wrong?