Bug 1288580 - Mark Widevine as supported on Linux and remove MacOSX version check. r=spohl
☠☠ backed out by aaf2540b99a3 ☠ ☠
authorChris Pearce <cpearce@mozilla.com>
Fri, 22 Jul 2016 14:21:19 +1200
changeset 331184 d3d51e9cdbefe96ed43c56f14f259b50a94616ed
parent 331183 d78a8f4bd9ccf817a199ed1f0a55c6813c78a481
child 331185 4988d24a6d7c792a707a7464c161e717da249e64
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersspohl
bugs1288580
milestone50.0a1
Bug 1288580 - Mark Widevine as supported on Linux and remove MacOSX version check. r=spohl This means if Widevine is preffed visible on Linux it will show up in the plugin list. We only support MacOSX 10.9 and later, so we don't need the >= 10.7 check any more. MozReview-Commit-ID: BjgMKeIIrrI
toolkit/modules/GMPUtils.jsm
--- a/toolkit/modules/GMPUtils.jsm
+++ b/toolkit/modules/GMPUtils.jsm
@@ -78,23 +78,21 @@ this.GMPUtils = {
         // Non-Windows OSes currently unsupported by Adobe EME
         this.maybeReportTelemetry(aPlugin.id,
                                   "VIDEO_EME_ADOBE_UNSUPPORTED_REASON",
                                   GMPPluginUnsupportedReason.NOT_WINDOWS);
       }
       // Windows Vista and later only supported by Adobe EME.
       return AppConstants.isPlatformAndVersionAtLeast("win", "6");
     } else if (aPlugin.id == WIDEVINE_ID) {
-      // The Widevine plugin is available for Windows versions Vista and later
-      // and Mac OSX 10.7 and later.
-      if (AppConstants.isPlatformAndVersionAtLeast("win", "6") ||
-          AppConstants.isPlatformAndVersionAtLeast("macosx", "10.7")) {
-        return true;
-      }
-      return false;
+      // The Widevine plugin is available for Windows versions Vista and later,
+      // Mac OSX, and Linux.
+      return AppConstants.isPlatformAndVersionAtLeast("win", "6") ||
+             AppConstants.platform == "macosx" ||
+             AppConstants.platform == "linux";
     }
 
     return true;
   },
 
   /**
    * Checks whether or not a given plugin is visible in the addons manager
    * UI and the "enable DRM" notification box. This can be used to test