Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSE] Intermittent crash with imported/w3c/web-platform-tests/media-s…
…ource/URL-createObjectURL-null.html https://bugs.webkit.org/show_bug.cgi?id=269656 rdar://123171059 Reviewed by Chris Dumez. `MediaSource::ensureWeakOnHTMLMediaElementContext` took a strong ref to the HTMLMediaElement but this code can be called while the HTMLMediaElement is being destructed. `ASSERT(!deletionHasBegun());` We use a RefPtrAllowingPartiallyDestroyed instead which avoid the problem for now. Ideally the logic should be refactored to avoid calling the method in the first place if the HTMLMediaElement has gone away. * Source/WebCore/Modules/mediasource/MediaSource.cpp: (WebCore::MediaSource::ensureWeakOnHTMLMediaElementContext const): Canonical link: https://commits.webkit.org/274942@main
- Loading branch information