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
--- 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;