Bug 227018

Summary: [MSE] Crash when getting audioTracks, videoTracks, textTracks of sourceBuffer after executing MediaSource::removeSourceBuffer()
Product: WebKit Reporter: Toshio Ogasawara <toshio.ogasawara>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, don.olmstead, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, tomoki.imai, webkit-bug-importer, Yousuke.Kimoto
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
ews-feeder: commit-queue-
patch none

Description Toshio Ogasawara 2021-06-15 01:39:23 PDT
Crash when getting audioTracks, videoTracks, textTracks of SourceBuffer after executing MediaSource::removeSourceBuffer().
SourceBuffer::audioTracks(), SourceBuffer::videoTracks(), SourceBuffer::textTracks() crashes because m_source is nullptr.
Comment 1 Toshio Ogasawara 2021-06-15 02:04:55 PDT
Created attachment 431415 [details]
patch
Comment 2 Toshio Ogasawara 2021-06-16 02:30:27 PDT
Created attachment 431529 [details]
patch

Fixed patch
Comment 3 Eric Carlson 2021-06-16 07:24:13 PDT
Comment on attachment 431529 [details]
patch

The test failures are unrelated.
Comment 4 EWS 2021-06-16 07:27:54 PDT
Committed r278932 (238863@main): <https://commits.webkit.org/238863@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431529 [details].
Comment 5 Radar WebKit Bug Importer 2021-06-16 07:28:17 PDT
<rdar://problem/79396564>
Comment 6 Toshio Ogasawara 2021-06-16 18:17:26 PDT
Thank you for the review.