Bug 1252168 - Don't send CDM unsupported notifications from Gecko to chrome. r=kentuckyfriedtakahe

MozReview-Commit-ID: FDfpeEt3HfT
This commit is contained in:
Chris Pearce 2016-03-03 11:02:17 +13:00
parent 8c4e89160d
commit fe12aefb3a
2 changed files with 6 additions and 5 deletions

View File

@ -577,6 +577,12 @@ 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;

View File

@ -74,11 +74,6 @@ var tests = [
expectedStatus: 'cdm-disabled',
prefs: [["media.eme.enabled", true], ["media.eme.clearkey.enabled", false]]
},
{
keySystem: 'unsupported-keysystem',
shouldPass: false,
expectedStatus: 'cdm-not-supported'
},
{
keySystem: CLEARKEY_ID + '.10000' , // A stupendously high min CDM version, presumably not installed.
shouldPass: false,