From aaed4ebc642d95dfb3cddab4fad196e870077bcf Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 5 Jul 2018 19:37:05 +0200 Subject: Add web/urlfilter --- src/webengine/urlinterceptor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/webengine/urlinterceptor.cpp') diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp index 70d7701..4e1b2f1 100644 --- a/src/webengine/urlinterceptor.cpp +++ b/src/webengine/urlinterceptor.cpp @@ -47,6 +47,15 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) if(rules.contains(info.requestUrl().host())) { info.block(rules.value(info.requestUrl().host()).isBlocking); } + +#ifdef QT_DEBUG + qDebug("request>>>"); + qDebug("firstParty url=%s", qUtf8Printable(info.firstPartyUrl().toString())); + qDebug("firstParty host=%s", qUtf8Printable(info.firstPartyUrl().host())); + qDebug("request url=%s", qUtf8Printable(info.requestUrl().toString())); + qDebug("request host=%s", qUtf8Printable(info.requestUrl().host())); + qDebug("<<<"); +#endif } QHash parse(const QString &filename) -- cgit v1.2.1