Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[EME] Keep MediaKeySystemAccess alive in createMediaKeys() async task
https://bugs.webkit.org/show_bug.cgi?id=247490 Reviewed by Philippe Normand. Put MediaKeySystemAccess under ActiveDOMObject interface and make sure that GC won't destroy an object before it executes its async task and createMediaKeys() func is completed. Sometimes it happens that GC destroys MediaKeySystemAccess object in the middle of createMediaKeys() func, before promise is completed and JS MediaKeys are never created. This fixes YT Cert Test: EME, WidevineH264MultiMediaKeySessions Patch based on one by Andrzej Surdej <Andrzej_Surdej@comcast.com> coming from WebPlatformForEmbedded/WPEWebKit#922 . * Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.cpp: (WebCore::MediaKeySystemAccess::create): (WebCore::MediaKeySystemAccess::MediaKeySystemAccess): (WebCore::MediaKeySystemAccess::createMediaKeys): * Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.h: * Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.idl: * Source/WebCore/Modules/encryptedmedia/NavigatorEME.cpp: (WebCore::NavigatorEME::requestMediaKeySystemAccess): (WebCore::tryNextSupportedConfiguration): Canonical link: https://commits.webkit.org/256442@main
- Loading branch information
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters