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

MozReview-Commit-ID: FDfpeEt3HfT

--HG--
extra : rebase_source : 5bddbeae15a8afb750f4baae416d9ff8257893c4
This commit is contained in:
Chris Pearce 2016-03-03 11:02:17 +13:00
Родитель 3005da2dd6
Коммит 648f43b562
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

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

Просмотреть файл

@ -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,