Top |
WebKitPermissionRequest is implemented by WebKitDeviceInfoPermissionRequest, WebKitGeolocationPermissionRequest, WebKitInstallMissingMediaPluginsPermissionRequest, WebKitMediaKeySystemPermissionRequest, WebKitNotificationPermissionRequest, WebKitPointerLockPermissionRequest, WebKitUserMediaPermissionRequest and WebKitWebsiteDataAccessPermissionRequest.
There are situations where an embedder would need to ask the user for permission to do certain types of operations, such as switching to fullscreen mode or reporting the user's location through the standard Geolocation API. In those cases, WebKit will emit a “permission-request” signal with a WebKitPermissionRequest object attached to it.
void
webkit_permission_request_allow (WebKitPermissionRequest *request
);
Allow the action which triggered this request.
void
webkit_permission_request_deny (WebKitPermissionRequest *request
);
Deny the action which triggered this request.