Thanks but what about chrome and XUL scripts ?
Surely chrome and XUL scripts count as being a local script?
Im using XUL + chrome script so I had expected
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite")
to work in the same way as
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
does WITHIN THE SAME CHROME SCRIPT
However even a simple modification to event.screenY seems to fail
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite")
event.screenX=event.screenX+1
> One of three conditions must be true in order to call enablePrivilege:
> 2. The script is local (loaded from the local drive with the file:
protocol)