diff options
author | Quentin Rameau <quinq@fifth.space> | 2024-03-17 07:14:37 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2024-06-10 21:12:28 +0100 |
commit | 0cd934cc2d6726cb9ced97f6486ab85b4769faea (patch) | |
tree | 979b18f816086adb930ce6ac197b275c1d97cd89 /surf.c | |
parent | a7f596c419eca9da9e1dcd62ce6ebaa9ea804f69 (diff) |
Move TLS parameters handling to datamanager
Using web context is deprecated since 2.32.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -873,7 +873,8 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a) case SpellLanguages: return; /* do nothing */ case StrictTLS: - webkit_web_context_set_tls_errors_policy(c->context, a->i ? + webkit_website_data_manager_set_tls_errors_policy( + webkit_web_view_get_website_data_manager(c->view), a->i ? WEBKIT_TLS_ERRORS_POLICY_FAIL : WEBKIT_TLS_ERRORS_POLICY_IGNORE); break; @@ -1179,7 +1180,6 @@ newview(Client *c, WebKitWebView *rv) NULL)); } - cookiemanager = webkit_web_context_get_cookie_manager(context); /* rendering process model, can be a shared unique one @@ -1187,7 +1187,8 @@ newview(Client *c, WebKitWebView *rv) webkit_web_context_set_process_model(context, WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES); /* TLS */ - webkit_web_context_set_tls_errors_policy(context, + webkit_website_data_manager_set_tls_errors_policy( + webkit_web_context_get_website_data_manager(context), curconfig[StrictTLS].val.i ? WEBKIT_TLS_ERRORS_POLICY_FAIL : WEBKIT_TLS_ERRORS_POLICY_IGNORE); /* disk cache */ |