[epiphany] embed: Add debug when a web page is blocked
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed: Add debug when a web page is blocked
- Date: Mon, 14 Apr 2014 13:11:54 +0000 (UTC)
commit 283c09ddae2288ddf52bb4ef0c5eaf8314c92727
Author: Bastien Nocera <hadess hadess net>
Date: Sat Mar 22 15:51:10 2014 +0100
embed: Add debug when a web page is blocked
Should help with fixing bugs in an overzealous AdBlock.
https://bugzilla.gnome.org/show_bug.cgi?id=726883
embed/web-extension/ephy-web-extension.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 391cfb9..75cda3c 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -120,6 +120,7 @@ web_page_send_request (WebKitWebPage *web_page,
{
const char *request_uri;
const char *page_uri;
+ gboolean ret;
request_uri = webkit_uri_request_get_uri (request);
@@ -156,7 +157,11 @@ web_page_send_request (WebKitWebPage *web_page,
if (g_str_has_prefix (request_uri, SOUP_URI_SCHEME_DATA))
return FALSE;
- return uri_tester_test_uri (extension->priv->uri_tester, request_uri, page_uri, AD_URI_CHECK_TYPE_OTHER);
+ ret = uri_tester_test_uri (extension->priv->uri_tester, request_uri, page_uri, AD_URI_CHECK_TYPE_OTHER);
+ if (ret)
+ g_debug ("Request '%s' blocked (page: '%s')", request_uri, page_uri);
+
+ return ret;
}
static GHashTable *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]