Skip to content

Commit

Permalink
[WebKitBrowser] Updating a method deprecated since 2.38 WebKit API
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro authored Dec 1, 2023
1 parent 7261bca commit 23434bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2971,7 +2971,11 @@ static GSourceFuncs _handlerIntervention =
}

if (!_config.CertificateCheck) {
#if WEBKIT_CHECK_VERSION(2, 38, 0)
webkit_website_data_manager_set_tls_errors_policy(webkit_web_context_get_website_data_manager(wkContext), WEBKIT_TLS_ERRORS_POLICY_IGNORE);
#else
webkit_web_context_set_tls_errors_policy(wkContext, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
#endif
}

auto* languages = static_cast<char**>(g_new0(char*, _config.Languages.Length() + 1));
Expand Down

0 comments on commit 23434bf

Please sign in to comment.