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


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to