WebView.connectLoadFailedWithTlsErrors
gulong connectLoadFailedWithTlsErrors(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.tls_certificate.TlsCertificate)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gio.types.TlsCertificateFlags)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : webkit.web_view.WebView)))
&& Parameters!T.length < 5)Connect to LoadFailedWithTlsErrors signal.
Emitted when a TLS error occurs during a load operation. To allow an exception for this certificate and the host of failing_uri use webkit_web_context_allow_tls_certificate_for_host().
To handle this signal asynchronously you should call [gobject.object.ObjectWrap.ref_] on certificate and return true.
If false is returned, #WebKitWebView::load-failed will be emitted. The load will finish regardless of the returned value.
Parameters
callback | signal callback delegate or function to connect bool callback(string failingUri, gio.tls_certificate.TlsCertificate certificate, gio.types.TlsCertificateFlags errors, webkit.web_view.WebView webView) failingUri the URI that failed to load (optional) certificate a #GTlsCertificate (optional) errors a #GTlsCertificateFlags with the verification status of certificate (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. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID