summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--surf.c2
1 files changed, 2 insertions, 0 deletions
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) {