mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Don't try to restart the media fetching process after an error
All errors specify that the resource selection algorithm should terminate, so let's not continue trying to fetch data.
This commit is contained in:
committed by
Gregory Bertilson
parent
b84473ff1d
commit
fa7f1792bc
Notes:
github-actions[bot]
2026-02-27 04:04:32 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fa7f1792bc3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8179 Reviewed-by: https://github.com/shannonbooth Reviewed-by: https://github.com/trflynn89
@@ -1236,6 +1236,9 @@ Optional<String> HTMLMediaElement::verify_response_or_get_failure_reason(GC::Ref
|
||||
|
||||
void HTMLMediaElement::restart_fetch_at_offset(FetchData& fetch_data, u64 offset)
|
||||
{
|
||||
if (m_error)
|
||||
return;
|
||||
|
||||
if (!fetch_data.accepts_byte_ranges)
|
||||
return;
|
||||
cancel_the_fetching_process();
|
||||
|
||||
Reference in New Issue
Block a user