Could it be that you're violating the "Same Origin Policy"? For example if the page is loaded from http://localhost your script may be prevented from accessing a document from a different origin like file:///some/file/path.Hi, I have a HTML page in which I have JavaScript code which invokes the XPCOM objects and performs certain functions. When I invoke the page through the mozilla browser using file:///<whole-file-path>, it works fine. However, when I copy the same HTML file into /var/www/html and try to open the file using http://localhost/test.html, it doesn't work. It keeps giving me an error in invoking
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
The error message says
A script from "http://localhost" was denied UniversalXPConnect privileges. I tried modifying prefs.js in .mozilla directory. But it still doesn't work. Can somebody please help me on this?
Regards, Anil
Take a look at: http://www.mozilla.org/projects/security/components/jssec.html
-daniel
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
