Bug 1256186 - Part 3 - Remove the temporary solution which ignores MediaKeySystemStatus::Cdm_not_supported.; r?jwwang
MozReview-Commit-ID: Jny48PqVFYR
--- a/dom/media/eme/MediaKeySystemAccess.cpp
+++ b/dom/media/eme/MediaKeySystemAccess.cpp
@@ -572,22 +572,16 @@ MediaKeySystemAccess::GetSupportedConfig
/* static */
void
MediaKeySystemAccess::NotifyObservers(nsPIDOMWindowInner* aWindow,
const nsAString& aKeySystem,
MediaKeySystemStatus aStatus)
{
- if (aStatus == MediaKeySystemStatus::Cdm_not_supported) {
- // Ignore, since there's nothing the user can do to rectify this, and we
- // don't want the prompt to confuse them.
- // TODO: Remove places that call with this entirely.
- return;
- }
RequestMediaKeySystemAccessNotification data;
data.mKeySystem = aKeySystem;
data.mStatus = aStatus;
nsAutoString json;
data.ToJSON(json);
EME_LOG("MediaKeySystemAccess::NotifyObservers() %s", NS_ConvertUTF16toUTF8(json).get());
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
if (obs) {