From 3b0b00af8bbe5ceb7104e3212f620f66bb061e7a Mon Sep 17 00:00:00 2001 From: Giovanni Panozzo Date: Wed, 31 Aug 2022 22:10:00 +0200 Subject: Remove webkit_settings_set_enable_frame_flattening() for newer WekbKitGTK, fixes #2780 --- plugins/www/www_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/www/www_plugin.c b/plugins/www/www_plugin.c index fcc0ed0cf..f360b6745 100644 --- a/plugins/www/www_plugin.c +++ b/plugins/www/www_plugin.c @@ -552,6 +552,8 @@ static void remmina_plugin_www_init(RemminaProtocolWidget *gp) webkit_web_context_set_automation_allowed(gpdata->context, TRUE); webkit_settings_set_javascript_can_open_windows_automatically(gpdata->settings, TRUE); webkit_settings_set_allow_modal_dialogs(gpdata->settings, TRUE); + +#if !WEBKIT_CHECK_VERSION(2, 38, 0) /** Frames flattening * Some websites engage in embedding frames-inside-of-frames. WebKit has * the ability to flatten them so they behave, when scrolling, as one big @@ -559,6 +561,8 @@ static void remmina_plugin_www_init(RemminaProtocolWidget *gp) */ if (!webkit_settings_get_enable_frame_flattening(gpdata->settings)) webkit_settings_set_enable_frame_flattening(gpdata->settings, true); +#endif + webkit_settings_set_enable_resizable_text_areas(gpdata->settings, true); g_signal_connect(G_OBJECT(gpdata->context), "download-started", -- cgit v1.2.3