From f80058bc275c30da592fa0d837e71a2811f6dfa9 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 16 Jul 2017 12:47:23 -0700 Subject: [PATCH] Version-check some webkit properties. Avoids error messages about undefined properties in tracefile. --- src/html/gnc-html-webkit2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/html/gnc-html-webkit2.c b/src/html/gnc-html-webkit2.c index aae4ddede9..70badc6969 100644 --- a/src/html/gnc-html-webkit2.c +++ b/src/html/gnc-html-webkit2.c @@ -143,8 +143,12 @@ gnc_html_webkit_webview_new (void) webkit_settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (view)); g_object_set (G_OBJECT(webkit_settings), "default-charset", "utf-8", +#if WEBKIT_MINOR_VERSION >= 10 "allow-file-access-from-file-urls", TRUE, +#endif +#if WEBKIT_MINOR_VERSION >= 14 "allow-universal-access-from-file-urls", TRUE, +#endif "enable-java", FALSE, "enable-page-cache", FALSE, "enable-plugins", FALSE,