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.

nsIPermission

IID:28F16D80-157B-11d5-A542-0010A401EB10
Inherits From:nsISupports

This interface defines a "permission" object, used to specify allowed/blocked objects from user-specified sites (cookies, images etc).

This interface is implemented by the following components:


Properties

readonly PRUint32 capability

The permission (see nsIPermissionManager.idl for allowed values)

readonly AUTF8String host

The name of the host for which the permission is set

readonly ACString type

A 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.

Reference documentation is generated from Mozilla's source.