mozdev.org

myportal

resources:
Frequently Asked Questions



Why don't links to local files work on My Portal?

For security reasons, Firefox blocks links to local files on a web page unless the web page is local (i.e. has a file:// URL). The Error Console (JavaScript Console in Firefox 1.x) displays a message that the link was blocked.

To remove this security check for only myportal:// URLs, add the following to your user.js file:

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "myportal://");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
Note that this fixes the problem only for the top-level myportal:// page; sub-portal URLs would need to be added to the sites string individually. See MozillaZine for more information.

Alternatively, try the LocalLink extension, which allows opening links to local files from the context menu.

The myportal project can be contacted through the mailing list or the member list.
Copyright © 2000-2017. All rights reserved. Terms of Use & Privacy Policy.