diff options
| author | Quentin Rameau <quinq@fifth.space> | 2024-03-17 08:15:39 +0100 |
|---|---|---|
| committer | Quentin Rameau <quinq@fifth.space> | 2024-03-17 08:22:17 +0100 |
| commit | f1d47112d6a9fa1848289a4a48e581992e5f91d7 (patch) | |
| tree | cde3ababbb1864792ccdedf8d15476a5ada5b6e3 /surf.c | |
| parent | 30f5464eb11b96f740b124816cbcfa55f125cf53 (diff) | |
Add webkit URI scheme
Diffstat (limited to 'surf.c')
| -rw-r--r-- | surf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |