Gaetano Bigliardi wrote:
but the problem is thet when I do:
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
there is an error like this:
Error: [Exception... "'enablePrivilege not granted' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
You probably need to sign your script. See http://www.mozilla.org/projects/security/components/signed-scripts.html
David Bradley
thank you very much. The problem now is: if using Internet Explorer the clipboard content is always available. Why in Mozilla the clipboard is protected? Is it a IE security hole or a Mozilla excess of protection?
In the clipboard script:
if (window.clipboardData) {
// the IE-manier
return(window.clipboardData.getData('Text'));} else if ...
Very simple if using Internet Explorer. Writing a Mozilla HTML editor have I to sign the script and notify the user to change manually the preference for the site?
Gaetano Bigliardi
