Clarify 'key replacement algorithm'#598
Open
xhwang-chromium wants to merge 1 commit into
Open
Conversation
…3c#583) This commit defines 'Key Replacement Algorithm' in the Definitions section to clarify how CDMs manage keys when capacity is reached or new versions are provided. It also updates notes in MediaKeySession to use this definition and ensures non-normative language ('recommended' instead of 'RECOMMENDED') is used in notes.
joeyparrish
approved these changes
May 15, 2026
| IDs MUST NOT be removed because they became unusable, such as due to expiration. | ||
| Instead, such keys MUST be given an appropriate status, such as | ||
| {{MediaKeyStatus/"expired"}}. | ||
| may be removed as the result of a {{MediaKeySession/update()}} call, for example if |
Member
There was a problem hiding this comment.
This might be redundant, or should explicitly happen in the algorithm key replacement algorithm. Similarly with key status change.
marcoscaceres
approved these changes
May 15, 2026
Member
marcoscaceres
left a comment
There was a problem hiding this comment.
It might be ok to merge this an editorial clean up, but we should consider moving all these normative parts into the appropriate algorithm(s).
It might be worth while for us to do a ~2 hour working session to move these bits around into the right places. I thinks everything we need is actually here, it’s just not specified in the most optimal way (i.e., algorithmically with state transitions at the appropriate times)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 583.
This commit defines 'Key Replacement Algorithm' in the Definitions section to clarify how CDMs manage keys when capacity is reached or new versions are provided. It also updates notes in MediaKeySession to use this definition and ensures non-normative language ('recommended' instead of 'RECOMMENDED') is used in notes.
Preview | Diff