If your JavaScript is not in a chrome URL (i.e. installed as a part of your mozilla installation) you have to use Privilege Manager.
This is the statement that will enable your script to run properly.
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
Mozilla will prompt the user for enabling this privilege.
Bye
yzzzzz wrote:
Hi,
I am writing a script (in JavaScript) for Mozilla, that will stay on my hard drive. When trying to access other documents, I get this error:
Error: uncaught exception: Permission denied to get property HTMLDocument.getElementsByTagName
Is there anyway I can specify that this particular script is safe? Can I tell Mozilla that it is in a 'safe zone' or on a 'trusted site'?
Thanks.
(fu2)
smime.p7s
Description: S/MIME Cryptographic Signature
