[pim/kdepim-addons] plugins/webengineurlinterceptor/adblock: Add debug. For the moment it's never initialized...

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a9f291e4727736bbc4ae7153b61f4ab76db1baeb by Laurent Montel.
Committed on 15/08/2026 at 10:35.
Pushed by mlaurent into branch 'master'.

Add debug. For the moment it's never initialized...

M  +3    -0    plugins/webengineurlinterceptor/adblock/adblockmanager.cpp

https://invent.kde.org/pim/kdepim-addons/-/commit/a9f291e4727736bbc4ae7153b61f4ab76db1baeb

diff --git a/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp b/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
index 809fbd378..dcc102fe6 100644
--- a/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
+++ b/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
@@ -38,12 +38,14 @@ AdblockManager::AdblockManager(QObject *parent)
 {
     reloadConfig();
 
+    qDebug() << " AdblockManager::AdblockManager: filterListPath()=" << filterListPath();
     connect(&m_networkManager, &QNetworkAccessManager::finished, this, &AdblockManager::handleListFetched);
     m_networkManager.setRedirectPolicy(QNetworkRequest::SameOriginRedirectPolicy);
 
     if (QDir(filterListPath()).isEmpty() && !QStandardPaths::isTestModeEnabled()) {
         refreshLists();
     }
+    qDebug() << " AdblockManager::AdblockManager: mAdblockInitFuture.valid()=" << mAdblockInitFuture.valid();
 }
 
 AdblockManager::~AdblockManager()
@@ -281,6 +283,7 @@ bool AdblockManager::interceptRequest(QWebEngineUrlRequestInfo &info)
     }
     if (result.matched) {
         info.block(true);
+        qDebug() << " Intercepted request to " << info.requestUrl() << " matched adblock filter, blocking it";
         return true;
     }
     if (!rewrittenUrl.empty()) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.