aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/fetch.rs
diff options
context:
space:
mode:
authorTim van der Lippe <TimvdLippe@users.noreply.github.com>2025-05-08 12:46:31 +0200
committerGitHub <noreply@github.com>2025-05-08 10:46:31 +0000
commitb6b80d4f6f514c08f36c85f5d8b372048078b94d (patch)
treec95de877945d26029dbbccedaed38681bdd4e866 /components/script/fetch.rs
parentf3f4cc5500a83f520a3a1e5905344b778109031c (diff)
downloadservo-b6b80d4f6f514c08f36c85f5d8b372048078b94d.tar.gz
servo-b6b80d4f6f514c08f36c85f5d8b372048078b94d.zip
Correct event_target for CSP violations (#36887)
All logic is implemented in `report_csp_violations` to avoid pulling in various element-logic into SecurityManager. Update the `icon-blocked.sub.html` WPT test to ensure that the document is the correct target (verified in Firefox and Chrome). Fixes #36806 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r--components/script/fetch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs
index 9192a030b66..989cdba862a 100644
--- a/components/script/fetch.rs
+++ b/components/script/fetch.rs
@@ -313,7 +313,7 @@ impl FetchResponseListener for FetchContext {
fn process_csp_violations(&mut self, _request_id: RequestId, violations: Vec<csp::Violation>) {
let global = &self.resource_timing_global();
- global.report_csp_violations(violations);
+ global.report_csp_violations(violations, None);
}
}