mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
committed by
GitHub
parent
12b8f5794b
commit
f340042c1d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user