Hi all

We are developing a web page that allows users to select a local file. The 
code is as follows:

var privilegeGranted = true;
var runtimeError = '';
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");
}
catch(e) {
privilegeGranted = false;
runtimeError = "Error";
}
if (privilegeGranted) { ........

This work fine locally, but not when the web page is in Internet. I've been 
searching for solutions and everybody talks about signing the javascript 
file. But How do I do this? Moreover, what kind of certificate do I need and 
how can I get them?

Note: I'm working in Windows System and do not find the right application to 
sign my JavaScript Files 


_______________________________________________
dev-security mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-security

Reply via email to