Introduction
Introduction Statistics Contact Development Disclaimer Help
tModify decideresource() and favicon handling - surf - customized build of surf…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit c3a827d621fbedfb974db9d137d3e5bea66490b4
parent b70a966aa6b5c9669029ad0464d467a412f6e266
Author: Quentin Rameau <[email protected]>
Date: Sun, 22 Nov 2015 15:19:10 +0100
Modify decideresource() and favicon handling
Return as soon as the request has been processed.
No need to modify the favicon uri, just ignore it.
Diffstat:
M surf.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -1143,10 +1143,10 @@ decideresource(WebKitPolicyDecision *d, Client *c)
webkit_response_policy_decision_get_response(r);
const gchar *uri = webkit_uri_response_get_uri(res);
- if (g_str_has_suffix(uri, "/favicon.ico"))
- webkit_uri_request_set_uri(
- webkit_response_policy_decision_get_request(r),
- "about:blank");
+ if (g_str_has_suffix(uri, "/favicon.ico")) {
+ webkit_policy_decision_ignore(d);
+ return;
+ }
if (!g_str_has_prefix(uri, "http://")
&& !g_str_has_prefix(uri, "https://")
t@@ -1164,6 +1164,7 @@ decideresource(WebKitPolicyDecision *d, Client *c)
if (isascii) {
handleplumb(c, uri);
webkit_policy_decision_ignore(d);
+ return;
}
}
You are viewing proxied material from mx1.adamsgaard.dk. 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.