Don't bother with stock, res and favicons uris in adblock

This commit is contained in:
Paweł Forysiuk 2011-08-27 16:24:43 +02:00 committed by Christian Dywan
parent 91c69458fa
commit b557233290

View file

@ -763,6 +763,11 @@ adblock_resource_request_starting_cb (WebKitWebView* web_view,
return; return;
if (!strncmp (req_uri, "data", 4) || !strncmp (req_uri, "file", 4)) if (!strncmp (req_uri, "data", 4) || !strncmp (req_uri, "file", 4))
return; return;
if (!strncmp (req_uri, "stock", 5) || !strncmp (req_uri, "res", 3))
return;
if (g_str_has_suffix (req_uri, "favicon.ico"))
return;
msg = webkit_network_request_get_message (request); msg = webkit_network_request_get_message (request);
if (!msg) if (!msg)