Report URI with POST fetch request (#37209)

Part of #4577

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-06-08 20:44:55 +02:00 committed by GitHub
parent 1b5a10a55f
commit 63cfeb3a18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 277 additions and 119 deletions

View file

@ -3501,7 +3501,8 @@ impl GlobalScope {
Some(event_target) => Trusted::new(event_target.upcast()),
};
// Step 3: Queue a task to run the following steps:
let task = CSPViolationReportTask::new(Trusted::new(self), target, report);
let task =
CSPViolationReportTask::new(Trusted::new(self), target, report, violation.policy);
self.task_manager()
.dom_manipulation_task_source()
.queue(task);