X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Finterceptors%2FUrlRequestInterceptor.cpp;fp=src%2Finterceptors%2FUrlRequestInterceptor.cpp;h=18944ea5ae0587bb06940c9f2286bd7a4e6b7358;hb=be625d0fcb1f4e8184ed62a28d23629f8c246d8e;hp=3b47e7e052d41066d4d23157982940bb9e89b5d4;hpb=f8f8d907d0caa128abf73696f812f8e92db812b7;p=PrivacyBrowserPC.git diff --git a/src/interceptors/UrlRequestInterceptor.cpp b/src/interceptors/UrlRequestInterceptor.cpp index 3b47e7e..18944ea 100644 --- a/src/interceptors/UrlRequestInterceptor.cpp +++ b/src/interceptors/UrlRequestInterceptor.cpp @@ -45,10 +45,10 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &urlReques requestStructPointer->urlString = urlRequestInfo.requestUrl().toString(); // Check the filter lists. - bool requestNotHandled = globalFilterListHelperPointer->checkFilterLists(urlRequestInfo, requestStructPointer); + bool continueProcessing = globalFilterListHelperPointer->checkFilterLists(urlRequestInfo, requestStructPointer); // Further process the request if it hasn't already been handled. - if (requestNotHandled) { + if (continueProcessing) { // Handle the request according to the resource type. switch (urlRequestInfo.resourceType()) { @@ -61,6 +61,9 @@ void UrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &urlReques // Mark the request struct as blocked. requestStructPointer->dispositionInt = FilterListHelper::BLOCKED; + // Mark the ping as blocked by the default behavior. + requestStructPointer->filterListTitle = i18nc("Default HTTP ping blocking", "Default blocking of all HTTP ping requests."); + // Display the HTTP Ping blocked dialog. emit displayHttpPingDialog(urlRequestInfo.requestUrl().toString());