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

@@ -3925,7 +3925,7 @@ impl ScriptThread {
// submit_timing will only accept timing that is of type ResourceTimingType::Resource
let mut resource_timing = timing.clone();
resource_timing.timing_type = ResourceTimingType::Resource;
submit_timing(&iframe_ctx, &eof, &resource_timing, CanGc::from_cx(cx));
submit_timing(cx, &iframe_ctx, &eof, &resource_timing);
}
}