]> Skullheadx's Git Forge - surf.git/commitdiff
Add webkit URI scheme
authorQuentin Rameau <quinq@fifth.space>
Sun, 17 Mar 2024 07:15:39 +0000 (08:15 +0100)
committerQuentin Rameau <quinq@fifth.space>
Sun, 17 Mar 2024 07:22:17 +0000 (08:22 +0100)
surf.c

diff --git a/surf.c b/surf.c
index f8c8dec53073076326c9936e7c278247ee464e61..2780072001ad4f5e5e5ab7223720ea854b72333d 100644 (file)
--- 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) {