+ // A naughty HTTP ping request.
+ case QWebEngineUrlRequestInfo::ResourceTypePing:
+ {
+ // Block the HTTP ping request.
+ urlRequestInfo.block(true);
+
+ // 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());
+
+ break;
+ }
+
+ default:
+ {
+ // Do nothing.
+ break;
+ }