WebContext


Object Hierarchy:

WebKit.WebContext WebKit.WebContext WebKit.WebContext GLib.Object GLib.Object GLib.Object->WebKit.WebContext

Description:

[ CCode ( type_id = "webkit_web_context_get_type ()" ) ]
public class WebContext : Object

Manages aspects common to all WebView<!-- -->s

The WebContext manages all aspects common to all WebView <!-- -->s.

You can define the CacheModel with set_cache_model, depending on the needs of your application. You can access the SecurityManager to specify the behaviour of your application regarding security using get_security_manager .

It is also possible to change your preferred language or enable spell checking, using set_preferred_languages, set_spell_checking_languages and set_spell_checking_enabled.

You can use register_uri_scheme to register custom URI schemes, and manage several other settings.

TLS certificate validation failure is now treated as a transport error by default. To handle TLS failures differently, you can connect to load_failed_with_tls_errors. Alternatively, you can use set_tls_errors_policy to set the policy webkit_tls_errors_policy_ignore; however, this is not appropriate for Internet applications.


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Properties:

Static methods:

Creation methods:

Methods:

Signals:

Inherited Members: