Missing a NULL check.
<rdar://problem/21356176>
Created attachment 255560 [details] Proposed patch.
Comment on attachment 255560 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=255560&action=review r=me > Source/WebCore/html/HTMLMediaElement.cpp:6320 > + if (m_player && m_hasPlaybackTargetAvailabilityListeners && !m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_player->canPlayToWirelessPlaybackTarget()) I wonder if m_mediaSession can ever be null?
(In reply to comment #3) > Comment on attachment 255560 [details] > Proposed patch. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=255560&action=review > > r=me > > > Source/WebCore/html/HTMLMediaElement.cpp:6320 > > + if (m_player && m_hasPlaybackTargetAvailabilityListeners && !m_mediaSession->wirelessVideoPlaybackDisabled(*this) && m_player->canPlayToWirelessPlaybackTarget()) > > I wonder if m_mediaSession can ever be null? No, it is a std::unique_ptr<> that is allocated in the constructor.
Committed r185962: https://trac.webkit.org/r185962