Readonly
elementReadonly
hasReadonly
isSee nsIPermissionDelegateHandler.maybeUnsafePermissionDelegate.
Readonly
principalThe principal of the permission request.
Readonly
topThe principal of the top-level page the permission request comes from.
Readonly
typesThe array will include the request types. Elements of this array are nsIContentPermissionType object.
Readonly
windowThe window or element that the permission request was originated in. Typically the element will be non-null in when using out of process content. window or element can be null but not both.
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.
Get delegate principal of the permission request. This will return nullptr, or request's principal or top level principal based on the delegate policy will be applied for a given type.
the permission type to get
Generated using TypeDoc
Interface allows access to a content to request permission to perform a privileged operation such as geolocation.