1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:15:07 +00:00

LibWeb: Add missing invocation to forget a media element's tracks

On bandcamp, this missing invocation would cause a playlist to loop one
single track indefinitely.
This commit is contained in:
Timothy Flynn 2023-06-22 07:19:22 -04:00 committed by Andreas Kling
parent 9cb4bf0683
commit 1c991e5582

View file

@ -476,7 +476,9 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::load_element()
m_fetch_controller->stop_fetch();
// FIXME: 3. If the media element's assigned media provider object is a MediaSource object, then detach it.
// FIXME: 4. Forget the media element's media-resource-specific tracks.
// 4. Forget the media element's media-resource-specific tracks.
forget_media_resource_specific_tracks();
// 5. If readyState is not set to HAVE_NOTHING, then set it to that state.
if (m_ready_state != ReadyState::HaveNothing)