]> spindle.queued.net Git - midori/commitdiff
Don't bother with stock, res and favicons uris in adblock
authorPaweł Forysiuk <tuxator@o2.pl>
Sat, 27 Aug 2011 14:24:43 +0000 (16:24 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 13 Sep 2011 23:33:07 +0000 (01:33 +0200)
extensions/adblock.c

index 3b64feebee01c4752370083b704d5c33c4283a92..7b19bcebe9856519006108895d4754398ad753d4 100644 (file)
@@ -763,6 +763,11 @@ adblock_resource_request_starting_cb (WebKitWebView*         web_view,
         return;
     if (!strncmp (req_uri, "data", 4) || !strncmp (req_uri, "file", 4))
         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);
     if (!msg)