Bug 1288582 - Hide Adobe Primetime plugin on Windows < Vista. r=spohl draft
authorChris Pearce <cpearce@mozilla.com>
Fri, 22 Jul 2016 14:30:22 +1200
changeset 391088 18dc3e18d2e18b403bfbd31b30577f00c2af489b
parent 391031 2e3390571fdb3a1ff3d2f7f828adf67dbc237bc8
child 391117 d642736ed80f71b34c79e2d15d005c8e29769733
push id23802
push userbmo:cpearce@mozilla.com
push dateFri, 22 Jul 2016 03:02:15 +0000
reviewersspohl
bugs1288582
milestone50.0a1
Bug 1288582 - Hide Adobe Primetime plugin on Windows < Vista. r=spohl We're not going to get a supported Adobe GMP on WinXP, so we shouldn't download it or show it in our add-on manager. MozReview-Commit-ID: I3cNsStmzsV
toolkit/modules/GMPUtils.jsm
--- a/toolkit/modules/GMPUtils.jsm
+++ b/toolkit/modules/GMPUtils.jsm
@@ -74,18 +74,19 @@ this.GMPUtils = {
       return true;
     }
     if (aPlugin.id == EME_ADOBE_ID) {
       if (Services.appinfo.OS != "WINNT") {
         // Non-Windows OSes currently unsupported by Adobe EME
         this.maybeReportTelemetry(aPlugin.id,
                                   "VIDEO_EME_ADOBE_UNSUPPORTED_REASON",
                                   GMPPluginUnsupportedReason.NOT_WINDOWS);
-        return false;
       }
+      // 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;