29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From 6f4d38537ec2192d7066a7ba145ca7ab0f607e56 Mon Sep 17 00:00:00 2001
|
|
From: Michael Catanzaro <mcatanzaro@redhat.com>
|
|
Date: Thu, 19 Jan 2023 20:12:04 -0600
|
|
Subject: [PATCH] M!112 - Update for removal of WebKitGTK sandbox API
|
|
|
|
WebKitGTK 2.39.5 contains an ABI break. The sandbox is now mandatory, so
|
|
the function to enable/disable it has been removed.
|
|
---
|
|
src/libedataserverui/e-credentials-prompter-impl-oauth2.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/libedataserverui/e-credentials-prompter-impl-oauth2.c b/src/libedataserverui/e-credentials-prompter-impl-oauth2.c
|
|
index 099a8f20c..0e5fb582f 100644
|
|
--- a/src/libedataserverui/e-credentials-prompter-impl-oauth2.c
|
|
+++ b/src/libedataserverui/e-credentials-prompter-impl-oauth2.c
|
|
@@ -1149,7 +1149,9 @@ e_credentials_prompter_impl_oauth2_show_dialog (ECredentialsPrompterImplOAuth2 *
|
|
NULL);
|
|
|
|
web_context = webkit_web_context_new ();
|
|
+#if !GTK_CHECK_VERSION(4, 0, 0) || !WEBKIT_CHECK_VERSION(2, 39, 5)
|
|
webkit_web_context_set_sandbox_enabled (web_context, TRUE);
|
|
+#endif
|
|
credentials_prompter_impl_oauth2_set_proxy (web_context, e_credentials_prompter_get_registry (prompter), prompter_oauth2->priv->auth_source);
|
|
|
|
widget = g_object_new (WEBKIT_TYPE_WEB_VIEW,
|
|
--
|
|
GitLab
|
|
|