mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Make HTMLMediaElement's FetchController reference weak
This allows the FetchController to be reclaimed when the fetch completes.
This commit is contained in:
committed by
Gregory Bertilson
parent
7c0802bd4f
commit
ad92622cf4
Notes:
github-actions[bot]
2026-02-18 19:14:32 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ad92622cf49 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7922
@@ -105,7 +105,6 @@ void HTMLMediaElement::visit_edges(Cell::Visitor& visitor)
|
||||
visitor.visit(m_text_tracks);
|
||||
visitor.visit(m_document_observer);
|
||||
visitor.visit(m_source_element_selector);
|
||||
visitor.visit(m_fetch_controller);
|
||||
visitor.visit(m_pending_play_promises);
|
||||
visitor.visit(m_selected_video_track);
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ private:
|
||||
|
||||
GC::Ptr<SourceElementSelector> m_source_element_selector;
|
||||
|
||||
GC::Ptr<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
GC::Weak<Fetch::Infrastructure::FetchController> m_fetch_controller;
|
||||
u32 m_current_fetch_generation { 0 };
|
||||
|
||||
RefPtr<Media::PlaybackManager> m_playback_manager;
|
||||
|
||||
Reference in New Issue
Block a user