Bug 1887971 : always set 'isHardwareDecryption' on MFCDMCapabilitiesIPDL. r=jolin

Differential Revision: https://phabricator.services.mozilla.com/D206290
This commit is contained in:
alwu 2024-04-05 01:28:30 +00:00
Родитель 48be032609
Коммит 48eb17ba6b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -767,6 +767,7 @@ void MFCDMParent::GetCapabilities(const nsString& aKeySystem,
const bool isHardwareDecryption =
aFlags.contains(CapabilitesFlag::HarewareDecryption);
aCapabilitiesOut.isHardwareDecryption() = isHardwareDecryption;
// Return empty capabilites for SWDRM on Windows 10 because it has the process
// leaking problem.
if (!IsWin11OrLater() && !isHardwareDecryption) {
@ -987,7 +988,6 @@ void MFCDMParent::GetCapabilities(const nsString& aKeySystem,
KeySystemConfig::SessionType::Temporary);
aCapabilitiesOut.sessionTypes().AppendElement(
KeySystemConfig::SessionType::PersistentLicense);
aCapabilitiesOut.isHardwareDecryption() = isHardwareDecryption;
// Cache capabilities for reuse.
sCapabilities.AppendElement(aCapabilitiesOut);