[pim/kdepim-addons] plugins/webengineurlinterceptor/adblock: Prepare to store blocked url

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

Prepare to store blocked url

M  +1    -0    plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
M  +1    -0    plugins/webengineurlinterceptor/adblock/adblockmanager.h

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

diff --git a/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp b/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
index e8c323ded..4caf98cc4 100644
--- a/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
+++ b/plugins/webengineurlinterceptor/adblock/adblockmanager.cpp
@@ -281,6 +281,7 @@ bool AdblockManager::interceptRequest(QWebEngineUrlRequestInfo &info)
     if (result.matched) {
         info.block(true);
         qCDebug(LIBADBLOCKPLUGIN_PLUGIN_LOG) << " Intercepted request to " << info.requestUrl() << " matched adblock filter, blocking it";
+        mInterceptUrls.append(info.requestUrl().toString());
         return true;
     }
     if (!rewrittenUrl.empty()) {
diff --git a/plugins/webengineurlinterceptor/adblock/adblockmanager.h b/plugins/webengineurlinterceptor/adblock/adblockmanager.h
index 2e1e96f10..f06a4dd0e 100644
--- a/plugins/webengineurlinterceptor/adblock/adblockmanager.h
+++ b/plugins/webengineurlinterceptor/adblock/adblockmanager.h
@@ -61,6 +61,7 @@ private:
     QList<AdblockFilter> mAdblockFilterLists;
     QNetworkAccessManager m_networkManager;
     int m_runningRequests = 0;
+    QStringList mInterceptUrls;
 };
 
 extern "C" {
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.