From df74f11b65c2414d938d7781e5dc6a69e52394d0 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sun, 17 Mar 2024 08:15:39 +0100 Subject: Add webkit URI scheme --- surf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'surf.c') diff --git a/surf.c b/surf.c index 61554c5..6b6d19b 100644 --- a/surf.c +++ b/surf.c @@ -575,6 +575,7 @@ loaduri(Client *c, const Arg *a) if (g_str_has_prefix(uri, "http://") || g_str_has_prefix(uri, "https://") || g_str_has_prefix(uri, "file://") || + g_str_has_prefix(uri, "webkit://") || g_str_has_prefix(uri, "about:")) { url = g_strdup(uri); } else { @@ -1732,6 +1733,7 @@ decideresource(WebKitPolicyDecision *d, Client *c) && !g_str_has_prefix(uri, "https://") && !g_str_has_prefix(uri, "about:") && !g_str_has_prefix(uri, "file://") + && !g_str_has_prefix(uri, "webkit://") && !g_str_has_prefix(uri, "data:") && !g_str_has_prefix(uri, "blob:") && strlen(uri) > 0) { -- cgit v1.2.3