webkit.permission_state_query
Module for [PermissionStateQuery] class
class PermissionStateQuery
Types 1
This query represents a user's choice to allow or deny access to "powerful features" of the platform, as specified in the Permissions W3C Specification.
When signalled by the #WebKitWebView through the query-permission-state signal, the application has to eventually respond, via [webkit.permission_state_query.PermissionStateQuery.finish], whether it grants, denies or requests a dedicated permission prompt for the given query.
When a #WebKitPermissionStateQuery is not handled by the user, the user-agent is instructed to prompt the user for the given permission.
Methods
PermissionStateQuery self()Returns `this`, for use in `with` statements.void finish(webkit.types.PermissionState state)Notify the web-engine of the selected permission state for the given query. This function should only be called as a response to the `WebKitWebView::query-permission-state` signal.string getName()Get the permission name for which access is being queried. Returns: the permission name for querywebkit.security_origin.SecurityOrigin getSecurityOrigin()Get the permission origin for which access is being queried. Returns: A #WebKitSecurityOrigin representing the origin from which the query was emitted.