signal callback delegate or function to connect
bool callback(webkit.permission_request.PermissionRequest request, webkit.web_view.WebView webView)
request the #WebKitPermissionRequest (optional)
webView the instance the signal is connected to (optional)
Returns true to stop other handlers from being invoked for the event. false to propagate the event further.
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to PermissionRequest signal.
This signal is emitted when WebKit is requesting the client to decide about a permission request, such as allowing the browser to switch to fullscreen mode, sharing its location or similar operations.
A possible way to use this signal could be through a dialog allowing the user decide what to do with the request:
It is possible to handle permission requests asynchronously, by simply calling gobject.object.ObjectWrap.ref_ on the request argument and returning true to block the default signal handler. If the last reference is removed on a #WebKitPermissionRequest and the request has not been handled, webkit.permission_request.PermissionRequest.deny will be the default action.
If the signal is not handled, the request will be completed automatically by the specific #WebKitPermissionRequest that could allow or deny it. Check the documentation of classes implementing #WebKitPermissionRequest interface to know their default action.