diff --git a/Libraries/LibWeb/ContentSecurityPolicy/Policy.cpp b/Libraries/LibWeb/ContentSecurityPolicy/Policy.cpp index 9a41fe3d94e..97665388d3d 100644 --- a/Libraries/LibWeb/ContentSecurityPolicy/Policy.cpp +++ b/Libraries/LibWeb/ContentSecurityPolicy/Policy.cpp @@ -118,7 +118,7 @@ GC::Ref Policy::parse_a_responses_content_security_policies(GC::Heap // response’s header list: auto report_policy_tokens_or_failure = response->header_list()->extract_header_list_values("Content-Security-Policy-Report-Only"sv); - if (auto const* report_policy_tokens = enforce_policy_tokens_or_failure.get_pointer>()) { + if (auto const* report_policy_tokens = report_policy_tokens_or_failure.get_pointer>()) { for (auto const& report_policy_token : *report_policy_tokens) { // 1. Let policy be the result of parsing token, with a source of "header", and a disposition of "report". auto policy = parse_a_serialized_csp(heap, report_policy_token, Policy::Source::Header, Policy::Disposition::Report);