Skip to content

Commit

Permalink
Change EncryptionScheme to match latest spec
Browse files Browse the repository at this point in the history
The current version of the EME spec
(https://w3c.github.io/encrypted-media/) has encryptionScheme as a
DOMString with an additional value allowed ("cbcs-1-9"). Updating
the code to match this.

This also moves the feature to stable now that it has been approved.

With this change the W3C test
(https://wpt.live/encrypted-media/clearkey-check-encryption-scheme.https.html)
passes.

Bug: 1035153
Test: Updated media_blink_unittests, browser_tests, and WPT tests pass
Change-Id: I00cb2ce8a4c4f52f95817471226b5e8129660247
  • Loading branch information
jrummell-chromium authored and chromium-wpt-export-bot committed Jan 13, 2020
1 parent e05bdb8 commit 1319c0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions encrypted-media/scripts/check-encryption-scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ function runTest(config, qualifier)
promise_test(
() => checkEncryptionScheme('cbcs'),
testnamePrefix(qualifier, config.keysystem) + ' support for "cbcs" encryption scheme.');

promise_test(
() => checkEncryptionScheme('cbcs-1-9'),
testnamePrefix(qualifier, config.keysystem) +
' support for "cbcs-1-9" encryption scheme.');
}

0 comments on commit 1319c0d

Please sign in to comment.