talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3a31cf2d6a2483ee389a575def601c94366271c5
parent 7f708453601816040b91ac0df418985fd29e9311
Author: Paul <paul@claws-mail.org>
Date:   Tue, 20 Sep 2022 10:52:30 +0100

disable the cache

fixes bug where the wrong mid/cid images would be shown when named identically to previously viewed images

Diffstat:
Msrc/plugins/fancy/fancy_viewer.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c @@ -110,6 +110,7 @@ static void fancy_apply_prefs(FancyViewer *viewer) g_strfreev(msg_font_params); } webkit_web_view_set_settings(viewer->view, viewer->settings); + webkit_web_context_set_cache_model(webkit_web_context_get_default(), WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER); if (viewer->override_prefs_remote_content) webkit_web_context_set_network_proxy_settings(webkit_web_context_get_default(), WEBKIT_NETWORK_PROXY_MODE_DEFAULT, NULL); else @@ -523,7 +524,7 @@ static void resource_request_starting_cb(WebKitWebView *view, gchar *image; gint err; MimeInfo *partinfo = viewer->to_load; - + filename = viewer->filename; if ((!g_ascii_strncasecmp(uri, "cid:", 4)) || (!g_ascii_strncasecmp(uri, "mid:", 4))) { image = g_strconcat("<", uri + 4, ">", NULL);