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:
parent
30f5464eb1
commit
f1d47112d6
2
surf.c
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user