mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Don't remove video displays on media element finalization
Removing a display risks triggering callbacks on the playback manager that may cause a recursive GC. This wasn't having any effect since the playback manager became an OwnPtr.
This commit is contained in:
committed by
Gregory Bertilson
parent
d40ad922ba
commit
29db875b7f
Notes:
github-actions[bot]
2026-04-01 07:57:34 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/29db875b7f3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8655 Reviewed-by: https://github.com/tcl3
@@ -118,12 +118,6 @@ void HTMLMediaElement::finalize()
|
||||
{
|
||||
Base::finalize();
|
||||
|
||||
if (m_selected_video_track) {
|
||||
VERIFY(m_selected_video_track_sink);
|
||||
m_playback_manager->remove_the_displaying_video_sink_for_track(m_selected_video_track->track_in_playback_manager());
|
||||
m_selected_video_track_sink = nullptr;
|
||||
}
|
||||
|
||||
document().page().unregister_media_element({}, unique_id());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user