Add webkit URI scheme
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user