PrivilegeManager.disablePrivilege() (Method)

A method for removing a privilege from a user.

Availability:

JavaScript - 1.2
Netscape - 4.0
JavaScript syntax:NmyPrivilegeManager.disablePrivilege(aPrivName)
Argument list:aPrivNameThe name of a privilege to be relinquished

The method should be called with a string argument containing the name of the privilege that is no longer required.

Example code:

   // Relinquish the file reading privilege
   netscape.security.PrivilegeManager.disablePrivilege("UniversalFileRead")

See also:Requesting privileges, UniversalBrowserAccess, UniversalBrowserRead, UniversalBrowserWrite, UniversalFileRead, UniversalPreferencesRead, UniversalPreferencesWrite, UniversalSendMail