3.13 <WebKitPermissionStateQuery>

Structure: <WebKitPermissionStateQuery>

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](https://w3c.github.io/permissions/).

When signalled by the <WebKitWebView> through the query-permission-state signal, the application has to eventually respond, via permission-state-query: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.

Procedures

Method: permission-state-query:finish self state
Method: finish self 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 web-view:query-permission-state signal.

self

Passed: a <WebKitPermissionStateQuery>.

a <WebKitPermissionStateQuery>

state

Passed: a <WebKitPermissionState>, or one of its symbols.

a <WebKitPermissionState>

Method: permission-state-query:get-name self ⇒ %return
Method: get-name self ⇒ %return

Get the permission name for which access is being queried.

self

Passed: a <WebKitPermissionStateQuery>.

a <WebKitPermissionStateQuery>

%return

Returned: a string.

the permission name for self

Method: permission-state-query:get-security-origin self ⇒ %return
Method: get-security-origin self ⇒ %return

Get the permission origin for which access is being queried.

self

Passed: a <WebKitPermissionStateQuery>.

a <WebKitPermissionStateQuery>

%return

Returned: a <WebKitSecurityOrigin>.

A <WebKitSecurityOrigin> representing the origin from which the self was emitted.

Method: permission-state-query:ref self ⇒ %return
Method: ref self ⇒ %return

Atomically increments the reference count of self by one.

This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitPermissionStateQuery>.

a <WebKitPermissionStateQuery>

%return

Returned: a <WebKitPermissionStateQuery>.

The passed <WebKitPermissionStateQuery>

Method: permission-state-query:unref self
Method: unref self

Atomically decrements the reference count of self by one.

If the reference count drops to 0, all memory allocated by <WebKitPermissionStateQuery> is released. This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitPermissionStateQuery>.

a <WebKitPermissionStateQuery>