Readonly
capabilityThe permission (see nsIPermissionManager.idl for allowed values)
Readonly
expireThe expiration time of the permission (milliseconds since Jan 1 1970 0:00:00).
Readonly
expireThe expiration type of the permission (session, time-based or none). Constants are EXPIRE_*, defined in nsIPermissionManager.
nsIPermissionManager
Readonly
modificationThe last modification time of the permission (milliseconds since Jan 1 1970 0:00:00).
Readonly
principalThe principal for which this permission applies.
Readonly
typea case-sensitive ASCII string, indicating the type of permission (e.g., "cookie", "image", etc). This string is specified by the consumer when adding a permission via nsIPermissionManager.
nsIPermissionManager
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Test whether a principal would be affected by this permission.
the principal to test
If true, only the specific host will be matched,
Test whether a URI would be affected by this permission. NOTE: This performs matches with default origin attribute values.
the uri to test
If true, only the specific host will be matched,
Generated using TypeDoc
This interface defines a "permission" object, used to specify allowed/blocked objects from user-specified sites (cookies, images etc).