Bug 215420

Summary: Clean up the VideoFullscreenModelClient management in VideoFullscreenModelContext
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: NEW ---    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Peng Liu 2020-08-12 11:37:02 PDT
We should replace `HashSet<WebCore::VideoFullscreenModelClient*>` with `WeakHashSet<WebCore::VideoFullscreenModelClient>` and update all the call sites. This may be a source of latent bugs, if the m_clients set is mutated while calling callbacks.
https://bugs.webkit.org/show_bug.cgi?id=215305#c8
Comment 1 Radar WebKit Bug Importer 2020-08-19 11:37:13 PDT
<rdar://problem/67415826>