summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2020-05-02 20:37:15 +0200
committerPeter Hofmann <scm@uninformativ.de>2020-05-02 20:37:15 +0200
commit8720c4df27e449f88ebecfb086cd6ae79a363420 (patch)
treebc4ed1517738fa88ea2e802827e1bc84f53836d0
parent657ebd4b1beacb11617fb098fa3fc0acd3bff1c6 (diff)
downloadlariza-8720c4df27e449f88ebecfb086cd6ae79a363420.tar.gz
Allow webkit:// in URLs
-rw-r--r--CHANGES3
-rw-r--r--browser.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 2255781..093fa0d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,9 @@ next
to run at least WebKitGTK 2.26 (released 2019-09-09). See also:
https://blogs.gnome.org/mcatanzaro/2020/03/31/sandboxing-webkitgtk-apps/
+ [Added]
+ - Allow webkit:// in URLs.
+
v20.04 2020-04-22
[Fixed]
- Minor fixes to manpages.
diff --git a/browser.c b/browser.c
index 0185daa..8df0e33 100644
--- a/browser.c
+++ b/browser.c
@@ -632,7 +632,8 @@ ensure_uri_scheme(const gchar *t)
!g_str_has_prefix(f, "https:") &&
!g_str_has_prefix(f, "file:") &&
!g_str_has_prefix(f, "about:") &&
- !g_str_has_prefix(f, "data:"))
+ !g_str_has_prefix(f, "data:") &&
+ !g_str_has_prefix(f, "webkit:"))
{
g_free(f);
fabs = realpath(t, NULL);