Bug 227018 - [MSE] Crash when getting audioTracks, videoTracks, textTracks of sourceBuffer after executing MediaSource::removeSourceBuffer()
Summary: [MSE] Crash when getting audioTracks, videoTracks, textTracks of sourceBuffer...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-15 01:39 PDT by Toshio Ogasawara
Modified: 2021-06-16 18:17 PDT (History)
11 users (show)

See Also:


Attachments
patch (5.29 KB, text/plain)
2021-06-15 02:04 PDT, Toshio Ogasawara
ews-feeder: commit-queue-
Details
patch (5.30 KB, patch)
2021-06-16 02:30 PDT, Toshio Ogasawara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.