WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/permissionmanager;1

This component implements the following interfaces:

Constants

Predefined return values for the testPermission method and for the permission param of the add method NOTE: UNKNOWN_ACTION (0) is reserved to represent the default permission when no entry is found for a host, and should not be used by consumers to indicate otherwise.
PRUint32 nsIPermissionManager.UNKNOWN_ACTION = 0
PRUint32 nsIPermissionManager.ALLOW_ACTION = 1
PRUint32 nsIPermissionManager.DENY_ACTION = 2

Properties

readonly nsISimpleEnumerator nsIPermissionManager.enumerator

Allows enumeration of all stored permissions

Methods

InterfaceMethod
nsIPermissionManager void add ( nsIURI uri , char* type , PRUint32 permission )
nsISupportsWeakReference nsIWeakReference GetWeakReference ( )
nsIObserver void observe ( nsISupports subject , char* topic , PRUnichar* data )
nsIPermissionManager void remove ( AUTF8String host , char* type )
nsIPermissionManager void removeAll ( )
nsIPermissionManager PRUint32 testExactPermission ( nsIURI uri , char* type )
nsIPermissionManager PRUint32 testPermission ( nsIURI uri , char* type )

Reference documentation is generated from Mozilla's source.