rdar://86237428
rdar://86237608
Created attachment 450816 [details] WIP
Created attachment 451116 [details] Rebase on trunk
Comment on attachment 451116 [details] Rebase on trunk View in context: https://bugs.webkit.org/attachment.cgi?id=451116&action=review > Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:511 > + if (RetainPtr controller = protectedThis->m_videoFullscreenManager->playerViewController(identifier)) You null-checked m_videoFullscreenManager before the completion handler, but is it guaranteed to still be valid here?
Comment on attachment 451116 [details] Rebase on trunk View in context: https://bugs.webkit.org/attachment.cgi?id=451116&action=review Thanks for the review! >> Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:511 >> + if (RetainPtr controller = protectedThis->m_videoFullscreenManager->playerViewController(identifier)) > > You null-checked m_videoFullscreenManager before the completion handler, but is it guaranteed to still be valid here? Great catch! I don't see any (obvious) reason why it's still guaranteed to be valid here, so I'll add a null check for `protectedThis->m_videoFullscreenManager` as well.
Created attachment 451122 [details] For landing
Committed r289237 (246921@main): <https://commits.webkit.org/246921@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451122 [details].