script: Remove Drop implementation of FetchCanceller (#41384)

Instead, we now explicitly call `.terminate()` and introduce relevant
methods to FetchCanceller.

Follow-up from review in #41345

---------

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Tim van der Lippe
2025-12-19 09:31:09 +01:00
committed by GitHub
parent 76691c5ce5
commit d8bf293828
6 changed files with 26 additions and 18 deletions

View File

@@ -3666,7 +3666,7 @@ impl HTMLMediaElementFetchContext {
}
self.cancel_reason = Some(reason);
self.data_source.borrow_mut().reset();
self.fetch_canceller.cancel();
self.fetch_canceller.abort();
}
fn cancel_reason(&self) -> &Option<CancelReason> {