Truly independent web browser
LibWeb: Do not log the null navigation request in CSP response checks
Andreas Klingb840269263d6
diff --git a/Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.cpp b/Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.cppindex 99ffcfe2b19..f8cb381703f 100644--- a/Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.cpp+++ b/Libraries/LibWeb/ContentSecurityPolicy/BlockingAlgorithms.cpp@@ -330,10 +330,8 @@ Directives::Directive::Result should_navigation_response_to_navigation_request_oauto result = Directives::Directive::Result::Allowed;// FIXME: File spec issue stating that the request can be null (e.g. from a srcdoc resource).- if (!navigation_request) {- dbgln("FIXME: Handle null navigation_request in navigation response Content Security Policy check.");+ if (!navigation_request)return result;- }// 2. For each policy of response CSP list:for (auto policy : response_csp_list->policies()) {