mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1252168 - Don't send CDM unsupported notifications from Gecko to chrome. r=kentuckyfriedtakahe
MozReview-Commit-ID: FDfpeEt3HfT
This commit is contained in:
parent
8c4e89160d
commit
fe12aefb3a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user