By default Firefox does not enable following file:/// links[1] for  
security reasons.  Since I run a wiki on my local machine, I like to  
put in file:/// links to files that are on my system.  For example,  
links to the O'Reilly CD Bookshelf.  In order to enable Firefox to  
browse file:/// links, I added the following lines to my
user.js file located at ~/Library/Application\ Support/Firefox/ 
Profiles/*default*/ on OS X:

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost";);
user_pref("capability.policy.localfilelinks.checkloaduri.enabled",  
"allAccess");

Notice for the .sites I used "http://localhost";.  A quick test show  
that I can click on file:/// links hosted by localhost but on other  
systems, e.g. other wikis.  So, this configuration in user.js seems  
to work.

Does anyone see a reason not to have these lines in my user.js?  That  
is, is there some security setting I'm overlooking?

[1] http://kb.mozillazine.org/Links_to_local_pages_don't_work

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent
 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to