Skip to content

Commit

Permalink
cog: Fix build for WebKit versions inferior to 2.32 (Igalia#348)
Browse files Browse the repository at this point in the history
webkit_website_data_manager_set_tls_errors_policy() was introduced in 2.32,
can't be used for older versions...
  • Loading branch information
philn authored Aug 19, 2021
1 parent 47f6713 commit 8de8ffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cog.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ on_handle_local_options (GApplication *application,
s_options.web_extensions_dir);
}

#if WEBKIT_CHECK_VERSION(2, 32, 0)
webkit_website_data_manager_set_tls_errors_policy(
#else
webkit_web_context_set_tls_errors_policy(
#endif
webkit_web_context_get_website_data_manager(cog_shell_get_web_context(shell)),
s_options.ignore_tls_errors ? WEBKIT_TLS_ERRORS_POLICY_IGNORE : WEBKIT_TLS_ERRORS_POLICY_FAIL);

Expand Down

0 comments on commit 8de8ffc

Please sign in to comment.