« Where's my adblock? | Main | Upgrading to Firefox 1.5 Beta 1 »

Firefox Tip 4: Handling file uris

I read this somwhere recently, and its immensely useful in a corporate environment.

If you want firefox to be able to load uris that look like file://...

  1. Open about:config
  2. set security.checkloaduri to false

Not sure if doing so makes firefox vulnerable.. so proceed at your own risk!

Update: Use the new prefs to enable this on a per-site-basis.

  1. Open about:config
  2. Add these prefs:
    • capability.policy.policynames = localfilelinks
    • capability.policy.default.checkloaduri = noAccess
    • capability.policy.localfilelinks.sites = http://intraneturl
    • capability.policy.localfilelinks.checkloaduri = allAccess

Comments

This KB article - http://kb.mozillazine.org/Links_to_local_pages_don%27t_work - discusses the preference, why it exists, and the ramifications of setting it to false.

I had this problem too when I needed image preview before uploading. it took a while to figure out the problem. It seems that the bugs isn't hard at all to fix but I guess it's better to threat it like a "security risk" instead of fixing it.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)