[balsa/gtk4: 310/311] improved Webkit HTML privacy filter




commit 2f632693d3f738b6d63253f784c33c9b9e989710
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Sat Oct 23 18:19:33 2021 +0200

    improved Webkit HTML privacy filter
    
    Provide improved HTML privacy filtering using a Webkit extension.  See
    issue #62 for further details.
    
    changed files:
    * libbalsa/html-filter.c: Webkit filter extension (new file)
    * libbalsa/html.c: use the filter extension if available
    * configure.ac, meson.build, libbalsa/Makefile.am, libbalsa/meson.build:
    configure web extension folder, build the extension
    
    Signed-off-by: Albrecht Dreß <albrecht dress netcologne de>

 libbalsa/html.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 0a3681e68..025f7e7e4 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -431,14 +431,13 @@ lbh_info_bar(LibBalsaWebKitInfo * info)
     GtkWidget *info_bar_widget;
     GtkInfoBar *info_bar;
     GtkWidget *label;
-#ifdef GTK_INFO_BAR_WRAPPING_IS_BROKEN
     static const gchar text[] =
-                 N_("This message part references content on one or more external servers. "
-                       "To protect your privacy, Balsa has not downloaded it. You may choose "
-                       "to download it if you trust the sender of the message.");
+                 N_("This message part references contents on one or more external servers. "
+                       "To protect your privacy, Balsa has not downloaded them. You may choose "
+                       "to download them if you trust the sender of the message.");
 
     info_bar_widget =
-        gtk_info_bar_new_with_buttons(_("_Download external content"),
+        gtk_info_bar_new_with_buttons(_("_Download external contents"),
                                      GTK_RESPONSE_OK,
                                      _("_Close"), GTK_RESPONSE_CLOSE,
                                      NULL);
@@ -702,8 +701,8 @@ lbh_web_view_new(LibBalsaWebKitInfo *info,
        webkit_settings_set_enable_java(settings, FALSE);
        webkit_settings_set_enable_hyperlink_auditing(settings, TRUE);
        webkit_settings_set_auto_load_images(settings,
-               auto_load_ext_content || (g_atomic_int_get(&html_filter_found) != 0));
-       lbh_load_external_resources(view, auto_load_ext_content);
+               auto_load_images || (g_atomic_int_get(&html_filter_found) != 0));
+       lbh_load_external_resources(view, auto_load_images);
 
        g_signal_connect(view, "web-process-terminated", G_CALLBACK(lbh_web_process_terminated_cb), info);
     g_signal_connect(view, "decide-policy", G_CALLBACK(lbh_decide_policy_cb), info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]