1
0
mirror of git://git.suckless.org/surf synced 2024-12-12 01:35:55 +00:00

Add webkit URI scheme

This commit is contained in:
Quentin Rameau 2024-03-17 08:15:39 +01:00
parent 30f5464eb1
commit f1d47112d6

2
surf.c
View File

@ -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) {