Function

Cog.handle_web_view_load_failed_with_tls_errors

Declaration [src]

gboolean
cog_handle_web_view_load_failed_with_tls_errors (
  WebKitWebView* web_view,
  char* failing_uri,
  GTlsCertificate* certificate,
  GTlsCertificateFlags errors,
  void* user_data
)

Description [src]

Handles TLS page load errors, showing a simple error page if needed and logging a message to the standard error output.

This function is typically used in a callback that handles the WebKit.WebView::load-failed-with-tls-errors signal, and can be used directly as a callback for it:

WebKitWebView* web_view = webkit_web_view_new(...);
g_signal_connect(web_view, "load-failed-with-tls-errors",
                 G_CALLBACK(cog_handle_web_view_load_failed_with_tls_errors),
                 NULL);

Parameters

web_view WebKitWebView*
 

A WebKit.WebView.

 Ownership is not transferred to the callee
failing_uri char*
 

URI that failed to load.

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
certificate GTlsCertificate*
  No description available.
 Ownership is not transferred to the callee
errors GTlsCertificateFlags
  No description available.
user_data void*
  No description available.
 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: gboolean

Whether other signal handler should be skipped.