One of three conditions must be true in order to call enablePrivilege:
1. The script is signed
2. The script is local (loaded from the local drive with the file: protocol)
3. Codebase principals are enabled in the browser. THis is intended as a 
debugging feature only, not for end users.

Please see 
http://www.mozilla.org/projects/security/components/signed-scripts.html

which explains this in more detail.
           - Mitch

rvj wrote:

> Does Mozilla support
> netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite")
> 
> or is it only available for signed scripts?
> 
> In the example below Im trying to set the event screenX and screenY values
> to point to the center of the current window
> 
> 
> 
> 
>>// enable security for universalbrowserwrite
>>
> netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
> 
> 
>>// setting the event screenX/screenY values to center of window fails
>> event.screenX=window.screenX+(window.outerWidth/2)
>> event.screenY=window.screenY+(window.outerHeight/2)
>>
> 
> 
> PS Where can I get a list of Mozilla security privileges options
> 
> 
> 
> 
> 
> 
> 



Reply via email to