Commit 0c8458c2 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

[TrustedTypes] Remove wrong kFollowedRedirect.

There are no reasons to use kFollowRedirect. Using it make the reports
contains less data.

Bug: 1113163
Change-Id: Ifc66cf29da71d53b2bea11a0da1a7724c6a6756f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339748
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarMike West <mkwst@chromium.org>
Reviewed-by: default avatarDaniel Vogelheim <vogelheim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796353}
parent 2aac1bcf
...@@ -265,7 +265,7 @@ void CSPDirectiveList::ReportEvalViolation( ...@@ -265,7 +265,7 @@ void CSPDirectiveList::ReportEvalViolation(
report_endpoints_, use_reporting_api_, header_, report_endpoints_, use_reporting_api_, header_,
header_type_, ContentSecurityPolicy::kEvalViolation, header_type_, ContentSecurityPolicy::kEvalViolation,
std::unique_ptr<SourceLocation>(), nullptr, std::unique_ptr<SourceLocation>(), nullptr,
RedirectStatus::kFollowedRedirect, nullptr, content); RedirectStatus::kNoRedirect, nullptr, content);
} }
bool CSPDirectiveList::CheckEval(SourceListDirective* directive) const { bool CSPDirectiveList::CheckEval(SourceListDirective* directive) const {
...@@ -340,7 +340,7 @@ bool CSPDirectiveList::AllowTrustedTypeAssignmentFailure( ...@@ -340,7 +340,7 @@ bool CSPDirectiveList::AllowTrustedTypeAssignmentFailure(
ContentSecurityPolicy::GetDirectiveName( ContentSecurityPolicy::GetDirectiveName(
ContentSecurityPolicy::DirectiveType::kRequireTrustedTypesFor), ContentSecurityPolicy::DirectiveType::kRequireTrustedTypesFor),
ContentSecurityPolicy::DirectiveType::kRequireTrustedTypesFor, message, ContentSecurityPolicy::DirectiveType::kRequireTrustedTypesFor, message,
KURL(), RedirectStatus::kFollowedRedirect, KURL(), RedirectStatus::kNoRedirect,
ContentSecurityPolicy::kTrustedTypesSinkViolation, sample, sample_prefix); ContentSecurityPolicy::kTrustedTypesSinkViolation, sample, sample_prefix);
return IsReportOnly(); return IsReportOnly();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment