M
Martijn Saly
I'd like to test in my script, if it's going to be possible to enable
priviliges.
If I use this...
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
....it presents a dialog to the user asking if it's ok. Now I don't want
to hide that dialog, I'd like to know if it's going to be possible to
click the Allow button, before ever making this call. Basically I need
to know if the appropriate certificate is installed and enabled and such.
I need this because if the priviliges cannot be enabled, the user must
install a certficate and I want to notify the user about that. But I
don't want to force the user to click allow/deny every time the page
loads, just for the purpose of checking a privilege...
I tried using this...
netscape.security.PrivilegeManager.isPrivilegeEnabled("UniversalXPConnect")
.... and I thought it worked, because in the (Venkman) javascript
debugger, it returns true. But it turns out that it returns true just
because the javascript debugger is already a trusted extension and is
therefor already granted such privileges. In my script, however, it
returns false.
I hope I'm making sense here
Anyone knows what to do?
priviliges.
If I use this...
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")
....it presents a dialog to the user asking if it's ok. Now I don't want
to hide that dialog, I'd like to know if it's going to be possible to
click the Allow button, before ever making this call. Basically I need
to know if the appropriate certificate is installed and enabled and such.
I need this because if the priviliges cannot be enabled, the user must
install a certficate and I want to notify the user about that. But I
don't want to force the user to click allow/deny every time the page
loads, just for the purpose of checking a privilege...
I tried using this...
netscape.security.PrivilegeManager.isPrivilegeEnabled("UniversalXPConnect")
.... and I thought it worked, because in the (Venkman) javascript
debugger, it returns true. But it turns out that it returns true just
because the javascript debugger is already a trusted extension and is
therefor already granted such privileges. In my script, however, it
returns false.
I hope I'm making sense here
Anyone knows what to do?