// Mirror of dom/media/ipc/MFCDMParent.cpp GetAllKeySystemsCapabilities key // system table. Keep in sync with the SecureLevel tags assigned there. const kExpectedIsHardwareDecryption = new Map([
["com.microsoft.playready.recommendation", false],
["com.microsoft.playready.recommendation.3000", true],
["com.microsoft.playready.recommendation.3000.clearlead", true],
]);
add_task(async function test_cdm_isHardwareDecryption_initialized() { // The CDM info chrome API doesn't need a content page, but doing the // assertions inside an explicit about:blank tab gives the initial // about:newtab inner window a clean lifecycle (opened, used, removed) // before the leak checker runs. Without this, about:newtab can // intermittently survive past shutdown.
await BrowserTestUtils.withNewTab("about:blank", async () => { const cdms = await ChromeUtils.getWMFContentDecryptionModuleInformation(); for (const cdm of cdms) { Assert.ok(
kExpectedIsHardwareDecryption.has(cdm.keySystemName),
`${cdm.keySystemName}: known WMF key system (update test mirror if intentional)`
);
is(
cdm.isHardwareDecryption,
kExpectedIsHardwareDecryption.get(cdm.keySystemName),
`${cdm.keySystemName}: isHardwareDecryption matches MFCDMParent SecureLevel tag`
);
}
});
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.