script: Pass &mut JSContext to FetchResponseListener::process_response_chunk (#43657)

Fixes #42841

Testing: It compiles

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe
2026-03-26 19:05:24 +01:00
committed by GitHub
parent 12b8f5794b
commit f340042c1d
20 changed files with 144 additions and 47 deletions

View File

@@ -3793,7 +3793,12 @@ impl FetchResponseListener for HTMLMediaElementFetchListener {
}
}
fn process_response_chunk(&mut self, _: RequestId, chunk: Vec<u8>) {
fn process_response_chunk(
&mut self,
_: &mut js::context::JSContext,
_: RequestId,
chunk: Vec<u8>,
) {
let element = self.element.root();
self.fetched_content_length += chunk.len() as u64;