script: Pass &mut JSContext to submit_timing_data (#43479)

Part of #40600

Testing: It compiles

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-03-20 16:31:46 +01:00
committed by GitHub
parent 0336c8084b
commit 8f699b1f17
21 changed files with 35 additions and 43 deletions

View File

@@ -402,7 +402,7 @@ impl FetchResponseListener for ClassicContext {
);
// Resource timing is expected to be available before "error" or "load" events are fired.
network_listener::submit_timing(&self, &response, &timing, CanGc::from_cx(cx));
network_listener::submit_timing(cx, &self, &response, &timing);
return;
},
_ => {},
@@ -478,7 +478,7 @@ impl FetchResponseListener for ClassicContext {
finish_fetching_a_classic_script(&elem, self.kind, self.url.clone(), Ok(load), cx);
// }
network_listener::submit_timing(&self, &response, &timing, CanGc::from_cx(cx));
network_listener::submit_timing(cx, &self, &response, &timing);
}
fn process_csp_violations(&mut self, _request_id: RequestId, violations: Vec<Violation>) {