How to call a Javascript function declared in my extension, using a html button from my web page?
I have a html page, with a button inside. When the user click the
Try to put this at the beginning of your javascript function that tries to access a local file:
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
This will give the user the choice as to whether they want to allow your code to access the local filesystem.