// Mark the request struct as blocked.
requestStructPointer->dispositionInt = FilterListHelper::BLOCKED;
- // Mark the prefetch request as blocked by the default behavior.
+ // Describe the prefetch request as blocked by the default behavior.
requestStructPointer->filterListTitle = i18nc("Default prefetch blocking", "Default blocking of all prefetch requests.");
// Set the continue processing flag.
break;
}
+ case QWebEngineUrlRequestInfo::ResourceTypeCspReport:
+ {
+ // Block the request.
+ urlRequestInfo.block(true);
+
+ // Mark the request struct as blocked.
+ requestStructPointer->dispositionInt = FilterListHelper::BLOCKED;
+
+ // Describe the CSP request as blocked by the default behavior.
+ requestStructPointer->filterListTitle = i18nc("Default CSP blocking", "Default blocking of all CSP requests.");
+
+ // Set the continue processing flag.
+ continueProcessing = false;
+
+ break;
+ }
+
case QWebEngineUrlRequestInfo::ResourceTypeNavigationPreloadMainFrame:
case QWebEngineUrlRequestInfo::ResourceTypeNavigationPreloadSubFrame:
{
// Mark the request struct as blocked.
requestStructPointer->dispositionInt = FilterListHelper::BLOCKED;
- // Mark the preload request as blocked by the default behavior.
+ // Describe the preload request as blocked by the default behavior.
requestStructPointer->filterListTitle = i18nc("Default preload blocking", "Default blocking of all preload requests.");
// Set the continue processing flag.
// Mark the request struct as blocked.
requestStructPointer->dispositionInt = FilterListHelper::BLOCKED;
- // Mark the ping as blocked by the default behavior.
+ // Describe the ping as blocked by the default behavior.
requestStructPointer->filterListTitle = i18nc("Default HTTP ping blocking", "Default blocking of all HTTP ping requests.");
// Set the continue processing flag.