Introduction
Introduction Statistics Contact Development Disclaimer Help
Add webkit URI scheme - 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 <[email protected]>
Date: Sun, 17 Mar 2024 08:15:39 +0100
Add webkit URI scheme
Diffstat:
M surf.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) {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.