Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 341dd78. rdar://123748005
[Crash in com.apple.WebKit.WebContent] WTF::Detail::CallableWrapper<WebKit::MediaSourcePrivateRemote::setMediaPlayerReadyState(WebCore::MediaPlayerReadyState)::$_0, void>::call https://bugs.webkit.org/show_bug.cgi?id=270506 rdar://123748005 Reviewed by Youenn Fablet. MediaSourcePrivateRemote::m_gpuConnection is a ThreadSafeWeakPtr which can become null before isGPURunning() returns true (such as if the GPU process crashed or was terminated). Add null test. * Source/WebKit/WebProcess/GPU/media/MediaSourcePrivateRemote.cpp: (WebKit::MediaSourcePrivateRemote::addSourceBuffer): (WebKit::MediaSourcePrivateRemote::durationChanged): (WebKit::MediaSourcePrivateRemote::bufferedChanged): (WebKit::MediaSourcePrivateRemote::markEndOfStream): (WebKit::MediaSourcePrivateRemote::unmarkEndOfStream): (WebKit::MediaSourcePrivateRemote::setMediaPlayerReadyState): (WebKit::MediaSourcePrivateRemote::setTimeFudgeFactor): Canonical link: https://commits.webkit.org/275680@main
- Loading branch information