Resolves: RHEL-21362 (OAuth2: Enable HTML5 database and local storage features for web view)
This commit is contained in:
parent
b053c5b704
commit
1ab69edb39
53
0019-oauth2-enable-html5-features.patch
Normal file
53
0019-oauth2-enable-html5-features.patch
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
diff -up evolution-data-server-3.28.5/src/libedataserverui/e-credentials-prompter-impl-oauth2.c.oauth2-enable-html5-features evolution-data-server-3.28.5/src/libedataserverui/e-credentials-prompter-impl-oauth2.c
|
||||||
|
--- evolution-data-server-3.28.5/src/libedataserverui/e-credentials-prompter-impl-oauth2.c.oauth2-enable-html5-features 2018-07-30 15:17:06.000000000 +0200
|
||||||
|
+++ evolution-data-server-3.28.5/src/libedataserverui/e-credentials-prompter-impl-oauth2.c 2024-01-11 16:00:50.316053801 +0100
|
||||||
|
@@ -571,7 +571,9 @@ e_credentials_prompter_impl_oauth2_show_
|
||||||
|
GtkScrolledWindow *scrolled_window;
|
||||||
|
GtkWindow *dialog_parent;
|
||||||
|
ECredentialsPrompter *prompter;
|
||||||
|
+ WebKitCookieManager *cookie_manager;
|
||||||
|
WebKitSettings *webkit_settings;
|
||||||
|
+ WebKitWebContext *web_context;
|
||||||
|
gchar *title, *uri;
|
||||||
|
GString *info_markup;
|
||||||
|
gint row = 0;
|
||||||
|
@@ -670,16 +672,28 @@ e_credentials_prompter_impl_oauth2_show_
|
||||||
|
webkit_settings = webkit_settings_new_with_settings (
|
||||||
|
"auto-load-images", TRUE,
|
||||||
|
"default-charset", "utf-8",
|
||||||
|
- "enable-html5-database", FALSE,
|
||||||
|
"enable-dns-prefetching", FALSE,
|
||||||
|
- "enable-html5-local-storage", FALSE,
|
||||||
|
+ "enable-html5-database", TRUE,
|
||||||
|
+ "enable-html5-local-storage", TRUE,
|
||||||
|
"enable-offline-web-application-cache", FALSE,
|
||||||
|
"enable-page-cache", FALSE,
|
||||||
|
"enable-plugins", FALSE,
|
||||||
|
"media-playback-allows-inline", FALSE,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
- widget = webkit_web_view_new_with_settings (webkit_settings);
|
||||||
|
+ web_context = webkit_web_context_new ();
|
||||||
|
+ #if WEBKIT_CHECK_VERSION(2, 40, 0)
|
||||||
|
+ webkit_web_context_set_sandbox_enabled (web_context, TRUE);
|
||||||
|
+ #endif
|
||||||
|
+
|
||||||
|
+ cookie_manager = webkit_web_context_get_cookie_manager (web_context);
|
||||||
|
+ webkit_cookie_manager_set_accept_policy (cookie_manager, WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS);
|
||||||
|
+
|
||||||
|
+ widget = g_object_new (WEBKIT_TYPE_WEB_VIEW,
|
||||||
|
+ "settings", webkit_settings,
|
||||||
|
+ "web-context", web_context,
|
||||||
|
+ NULL);
|
||||||
|
+
|
||||||
|
g_object_set (
|
||||||
|
G_OBJECT (widget),
|
||||||
|
"hexpand", TRUE,
|
||||||
|
@@ -689,6 +703,7 @@ e_credentials_prompter_impl_oauth2_show_
|
||||||
|
NULL);
|
||||||
|
gtk_container_add (GTK_CONTAINER (scrolled_window), widget);
|
||||||
|
g_object_unref (webkit_settings);
|
||||||
|
+ g_object_unref (web_context);
|
||||||
|
|
||||||
|
prompter_oauth2->priv->web_view = WEBKIT_WEB_VIEW (widget);
|
||||||
|
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
Name: evolution-data-server
|
Name: evolution-data-server
|
||||||
Version: 3.28.5
|
Version: 3.28.5
|
||||||
Release: 23%{?dist}
|
Release: 24%{?dist}
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Summary: Backend data server for Evolution
|
Summary: Backend data server for Evolution
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -108,6 +108,8 @@ Patch17: evolution-data-server-3.28.5-secret-monitor-warnings.patch
|
|||||||
# RH bug #2081746
|
# RH bug #2081746
|
||||||
Patch18: evolution-data-server-3.28.5-google-oauth2.patch
|
Patch18: evolution-data-server-3.28.5-google-oauth2.patch
|
||||||
|
|
||||||
|
Patch19: 0019-oauth2-enable-html5-features.patch
|
||||||
|
|
||||||
### Dependencies ###
|
### Dependencies ###
|
||||||
|
|
||||||
Requires: dconf
|
Requires: dconf
|
||||||
@ -260,6 +262,7 @@ the functionality of the installed %{name} package.
|
|||||||
%patch16 -p1 -b .nonstandard-uuencode-encoding
|
%patch16 -p1 -b .nonstandard-uuencode-encoding
|
||||||
%patch17 -p1 -b .secret-monitor-warnings
|
%patch17 -p1 -b .secret-monitor-warnings
|
||||||
%patch18 -p1 -b .google-oauth2
|
%patch18 -p1 -b .google-oauth2
|
||||||
|
%patch19 -p1 -b .oauth2-enable-html5-features
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -533,6 +536,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
|||||||
%{_datadir}/installed-tests
|
%{_datadir}/installed-tests
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 11 2024 Milan Crha <mcrha@redhat.com> - 3.28.5-24
|
||||||
|
- Resolves: RHEL-21362 (OAuth2: Enable HTML5 database and local storage features for web view)
|
||||||
|
|
||||||
* Wed Oct 11 2023 Milan Crha <mcrha@redhat.com> - 3.28.5-23
|
* Wed Oct 11 2023 Milan Crha <mcrha@redhat.com> - 3.28.5-23
|
||||||
- Resolves: RHEL-12398 (Move WebKitGTK parts in Evolution Data Server into optional subpackage)
|
- Resolves: RHEL-12398 (Move WebKitGTK parts in Evolution Data Server into optional subpackage)
|
||||||
- Add requirement on ui subpackage into ui-devel subpackage
|
- Add requirement on ui subpackage into ui-devel subpackage
|
||||||
|
Loading…
Reference in New Issue
Block a user