commit 5ff0981186fe5bb4aebe080ec93104c5944fda6e
parent 5536bc805c2cb95644f15e828c0ae18fd70e9408
Author: alwu <alwu@mozilla.com>
Date: Thu, 16 Oct 2025 19:00:37 +0000
Bug 1994550 - part2 : ensure CBCS will be checked for the capability. r=jolin
Currently, our logic incorrectly skips checking CBCS if CENC is already
supported. This patch fixes this issue to ensure that CBCS is checked
properly.
Differential Revision: https://phabricator.services.mozilla.com/D268804
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dom/media/ipc/MFCDMParent.cpp b/dom/media/ipc/MFCDMParent.cpp
@@ -1066,7 +1066,7 @@ void MFCDMParent::GetCapabilities(const nsString& aKeySystem,
rv ? "supported" : "not supported");
if (rv) {
supportedScheme += scheme;
- break;
+ continue;
}
// Try 16 bytes IV.
additionalFeature.AppendLiteral(u"encryption-iv-size=16,");
@@ -1079,7 +1079,7 @@ void MFCDMParent::GetCapabilities(const nsString& aKeySystem,
if (rv) {
supportedScheme += scheme;
- break;
+ continue;
}
}
// Add a capability if supported scheme exists