haikuwebkit/Source/WebCore/Modules/mediasource
Toshio Ogasawara c9f32535ff [MSE] Crash when getting audioTracks, videoTracks, textTracks of sourceBuffer after executing MediaSource::removeSourceBuffer()
https://bugs.webkit.org/show_bug.cgi?id=227018

Patch by Toshio Ogasawara <toshio.ogasawara@access-company.com> on 2021-06-16
Reviewed by Eric Carlson.

Source/WebCore:

Fixed not to refer to m_source when isRemoved() is true in SourceBuffer::videoTracks(),
SourceBuffer::audioTracks(), SourceBuffer::textTracks().

Test: media/media-source/media-source-get-tracks-crash.html

* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::videoTracks):
(WebCore::SourceBuffer::audioTracks):
(WebCore::SourceBuffer::textTracks):

LayoutTests:

* media/media-source/media-source-get-tracks-crash-expected.txt: Added.
* media/media-source/media-source-get-tracks-crash.html: Added.

Canonical link: https://commits.webkit.org/238863@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-16 14:27:47 +00:00
..
AudioTrack+MediaSource.idl Enable MEDIA_SOURCE in IOS Simulator 2021-03-02 15:37:23 +00:00
AudioTrackMediaSource.h
DOMURL+MediaSource.idl Enable MEDIA_SOURCE in IOS Simulator 2021-03-02 15:37:23 +00:00
DOMURLMediaSource.cpp
DOMURLMediaSource.h
MediaSource.cpp Nullptr crash in MediaSource::updateBufferedIfNeeded 2021-06-09 23:41:30 +00:00
MediaSource.h Reduce use of legacy EventLoopEventQueue and EventLoopTaskQueue 2021-06-06 19:13:07 +00:00
MediaSource.idl [WebIDL] Remove the need to specify [MayThrowException] 2021-03-23 00:49:01 +00:00
MediaSourceRegistry.cpp
MediaSourceRegistry.h
SampleMap.cpp [Cocoa] WebM audio goes out-of-sync or stops playing after a seek 2021-02-04 04:06:19 +00:00
SampleMap.h
SourceBuffer.cpp [MSE] Crash when getting audioTracks, videoTracks, textTracks of sourceBuffer after executing MediaSource::removeSourceBuffer() 2021-06-16 14:27:47 +00:00
SourceBuffer.h Reduce use of legacy EventLoopEventQueue and EventLoopTaskQueue 2021-06-06 19:13:07 +00:00
SourceBuffer.idl [WebIDL] Remove the need to specify [MayThrowException] 2021-03-23 00:49:01 +00:00
SourceBufferList.cpp Reduce use of legacy EventLoopEventQueue and EventLoopTaskQueue 2021-06-06 19:13:07 +00:00
SourceBufferList.h Reduce use of legacy EventLoopEventQueue and EventLoopTaskQueue 2021-06-06 19:13:07 +00:00
SourceBufferList.idl Enable MEDIA_SOURCE in IOS Simulator 2021-03-02 15:37:23 +00:00
TextTrack+MediaSource.idl Enable MEDIA_SOURCE in IOS Simulator 2021-03-02 15:37:23 +00:00
TextTrackMediaSource.h
VideoPlaybackQuality.cpp
VideoPlaybackQuality.h
VideoPlaybackQuality.idl
VideoTrack+MediaSource.idl Enable MEDIA_SOURCE in IOS Simulator 2021-03-02 15:37:23 +00:00
VideoTrackMediaSource.h