зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1887971 : always set 'isHardwareDecryption' on MFCDMCapabilitiesIPDL. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D206290
This commit is contained in:
Родитель
48be032609
Коммит
48eb17ba6b
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче