aboutsummaryrefslogtreecommitdiff
path: root/src/webengine
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-05-24 15:29:25 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-05-24 15:29:25 +0200
commit863da92c57a5d6245bac3885936f59da88041e75 (patch)
tree9125ee3ac879c8be44019e5ffc27a5c3b4d2a92e /src/webengine
parentReworking URL filter (diff)
downloadsmolbote-863da92c57a5d6245bac3885936f59da88041e75.tar.xz
Improved filter rules
Diffstat (limited to 'src/webengine')
-rw-r--r--src/webengine/urlinterceptor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp
index ab5ee12..da2925c 100644
--- a/src/webengine/urlinterceptor.cpp
+++ b/src/webengine/urlinterceptor.cpp
@@ -19,7 +19,7 @@
******************************************************************************/
#include "urlinterceptor.h"
-#include "blocker/blockersubscription.h"
+#include "blocker/filtercollection.h"
UrlRequestInterceptor::UrlRequestInterceptor(QObject *parent) :
QWebEngineUrlRequestInterceptor(parent)
@@ -29,7 +29,7 @@ UrlRequestInterceptor::UrlRequestInterceptor(QObject *parent) :
void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{
#ifdef DEBUG_VERBOSE
- qDebug("%s", qUtf8Printable(info.requestUrl().toString()));
+ qDebug("%s --> [%i] %s", qUtf8Printable(info.firstPartyUrl().toString()), info.resourceType(), qUtf8Printable(info.requestUrl().toString()));
#endif
for(auto s : m_manager->subscriptions()) {
@@ -37,7 +37,7 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
if(r.match) {
info.block(r.block);
#ifdef DEBUG_VERBOSE
- qDebug("+--> matched [%s] [%s]", r.block ? "blocked" : "allowed", qUtf8Printable(r.pattern));
+ qDebug(">> matched [%s] [%s]", r.block ? "blocked" : "allowed", qUtf8Printable(r.pattern));
#endif
return;
}