WebKit2.WebView::load-failed-with-tls-errors

connect('load-failed-with-tls-errors', function (webView, failing_uri: String, certificate: Gio.TlsCertificate, errors: Gio.TlsCertificateFlags, ): Boolean);
  

Emitted when a TLS error occurs during a load operation. To allow an exception for this certificate and the host of failing_uri use WebKit2.WebContext.prototype.allow_tls_certificate_for_host.

To handle this signal asynchronously you should call g_object_ref() on certificate and return true.

If false is returned, WebKit2.WebView::load-failed will be emitted. The load will finish regardless of the returned value.

Since 2.6

webView

instance of WebKit2.WebView that is emitting the signal

failing_uri

the URI that failed to load

certificate

a Gio.TlsCertificate

errors

a Gio.TlsCertificateFlags with the verification status of certificate

Returns

true to stop other handlers from being invoked for the event. false to propagate the event further.