Bug 1256186 - Part 3 - Remove the temporary solution which ignores MediaKeySystemStatus::Cdm_not_supported.; r?jwwang draft
authorKilik Kuo <kikuo@mozilla.com>
Wed, 06 Apr 2016 00:09:32 +0800
changeset 347973 309314108d470b8fbc2bb7e1e47e25c0a87c64a9
parent 347972 380d52b75ee9a2bae387577d9345b900b8470844
child 517748 5f30f9fdc727854eb173122ebe528758e15baf52
push id14713
push userkikuo@mozilla.com
push dateWed, 06 Apr 2016 07:39:11 +0000
reviewersjwwang
bugs1256186
milestone48.0a1
Bug 1256186 - Part 3 - Remove the temporary solution which ignores MediaKeySystemStatus::Cdm_not_supported.; r?jwwang MozReview-Commit-ID: Jny48PqVFYR
dom/media/eme/MediaKeySystemAccess.cpp
--- 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) {