Add webkit URI scheme - surf - surf browser, a WebKit based browser
 (HTM) git clone git://git.suckless.org/surf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f1d47112d6a9fa1848289a4a48e581992e5f91d7
 (DIR) parent 30f5464eb11b96f740b124816cbcfa55f125cf53
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       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(-)
       ---
 (DIR) 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) {