Functions

download_error_quark() int
favicon_database_error_quark() int
get_major_version() int

Returns the major version number of the WebKit library.

(e.g. in WebKit version 1.8.3 this is 1.)

This function is in the library, so it represents the WebKit library your code is running against. Contrast with the WEBKIT_MAJOR_VERSION macro, which represents the major version of the WebKit headers you have included when compiling your code.

Returns:

the major version number of the WebKit library

get_micro_version() int

Returns the micro version number of the WebKit library.

(e.g. in WebKit version 1.8.3 this is 3.)

This function is in the library, so it represents the WebKit library your code is running against. Contrast with the WEBKIT_MICRO_VERSION macro, which represents the micro version of the WebKit headers you have included when compiling your code.

Returns:

the micro version number of the WebKit library

get_minor_version() int

Returns the minor version number of the WebKit library.

(e.g. in WebKit version 1.8.3 this is 8.)

This function is in the library, so it represents the WebKit library your code is running against. Contrast with the WEBKIT_MINOR_VERSION macro, which represents the minor version of the WebKit headers you have included when compiling your code.

Returns:

the minor version number of the WebKit library

javascript_error_quark() int
media_error_quark() int
media_key_system_permission_get_name(request: MediaKeySystemPermissionRequest) str

Get the key system for which access permission is being requested.

Added in version 2.32.

Parameters:

request – a MediaKeySystemPermissionRequest

Returns:

the key system name for request

network_error_quark() int
policy_error_quark() int
print_error_quark() int
snapshot_error_quark() int
uri_for_display(uri: str) str | None

Use this function to format a URI for display.

The URIs used internally by WebKit may contain percent-encoded characters or Punycode, which are not generally suitable to display to users. This function provides protection against IDN homograph attacks, so in some cases the host part of the returned URI may be in Punycode if the safety check fails.

Added in version 2.24.

Parameters:

uri – the URI to be converted

Returns:

uri suitable for display, or None in case of error.

user_content_filter_error_quark() int
user_media_permission_is_for_audio_device(request: UserMediaPermissionRequest) bool

Check whether the permission request is for an audio device.

Added in version 2.8.

Parameters:

request – a UserMediaPermissionRequest

Returns:

True if access to an audio device was requested.

user_media_permission_is_for_display_device(request: UserMediaPermissionRequest) bool

Check whether the permission request is for a display device.

Added in version 2.34.

Parameters:

request – a UserMediaPermissionRequest

Returns:

True if access to a display device was requested.

user_media_permission_is_for_video_device(request: UserMediaPermissionRequest) bool

Check whether the permission request is for a video device.

Added in version 2.8.

Parameters:

request – a UserMediaPermissionRequest

Returns:

True if access to a video device was requested.

user_message_error_quark() int