Bug 1264832 - Delay resolution of navigator.requestMediaKeySystemAccess promise until Widevine CDM is downloaded. r?gerald
MozReview-Commit-ID: I6OMiKUj9ot
--- a/dom/media/eme/MediaKeySystemAccessManager.cpp
+++ b/dom/media/eme/MediaKeySystemAccessManager.cpp
@@ -113,17 +113,18 @@ MediaKeySystemAccessManager::Request(Det
minCdmVersion,
MediaKeySystemStatusValues::strings[(size_t)status].value,
cdmVersion.get(),
message.get());
LogToBrowserConsole(NS_ConvertUTF8toUTF16(msg));
if ((status == MediaKeySystemStatus::Cdm_not_installed ||
status == MediaKeySystemStatus::Cdm_insufficient_version) &&
- keySystem.EqualsLiteral("com.adobe.primetime")) {
+ (keySystem.EqualsLiteral("com.adobe.primetime") ||
+ keySystem.EqualsLiteral("com.widevine.alpha"))) {
// These are cases which could be resolved by downloading a new(er) CDM.
// When we send the status to chrome, chrome's GMPProvider will attempt to
// download or update the CDM. In AwaitInstall() we add listeners to wait
// for the update to complete, and we'll call this function again with
// aType==Subsequent once the download has completed and the GMPService
// has had a new plugin added. AwaitInstall() sets a timer to fail if the
// update/download takes too long or fails.
if (aType == RequestType::Initial &&