Skip to content

Commit

Permalink
webkit_web_context_set_tls_errors_policy() replaced by webkit_website…
Browse files Browse the repository at this point in the history
…_data_manager_set_tls_errors_policy() in 2.38
  • Loading branch information
VeithMetro committed Nov 30, 2023
1 parent 896acd2 commit 19ce67c
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 @@ -2964,7 +2964,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 19ce67c

Please sign in to comment.