mirror of
https://github.com/servo/servo
synced 2026-04-26 17:45:19 +02:00
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:
committed by
GitHub
parent
0336c8084b
commit
8f699b1f17
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user