surf

surf browser, a WebKit based browser
git clone git://git.suckless.org/surf
Log | Files | Refs | README | LICENSE

commit f1d47112d6a9fa1848289a4a48e581992e5f91d7
parent 30f5464eb11b96f740b124816cbcfa55f125cf53
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun, 17 Mar 2024 08:15:39 +0100

Add webkit URI scheme

Diffstat:
Msurf.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/surf.c b/surf.c @@ -573,6 +573,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 { @@ -1739,6 +1740,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) {