URI: 
       Move TLS parameters handling to datamanager - surf - [fork] surf browser, a WebKit based browser
  HTML git clone git@git.drkhsh.at/surf.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 85bfff10837d655e1b199108b2be82e5c79abc9d
   DIR parent 3f4292b7ccc4d25002a17d9f821ea0274c57098b
  HTML Author: Quentin Rameau <quinq@fifth.space>
       Date:   Sun, 17 Mar 2024 07:14:37 +0100
       
       Move TLS parameters handling to datamanager
       
       Using web context is deprecated since 2.32.
       
       Diffstat:
         M surf.c                              |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/surf.c b/surf.c
       @@ -847,7 +847,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;
       @@ -1148,7 +1149,6 @@ newview(Client *c, WebKitWebView *rv)
                                          NULL));
                        }
        
       -
                        cookiemanager = webkit_web_context_get_cookie_manager(context);
        
                        /* rendering process model, can be a shared unique one
       @@ -1156,7 +1156,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 */