Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: Allow printable ASCII characters in EME session ID
Currently we only allow alphanumerical characters in EME session ID. This is used as an example in the EME spec but not a requirement. There are key systems using Base64 encoded session IDs, which therefore use printable but non-alphanumeric characters. The EME session ID check is relaxed to allow any printable ASCII characters, to allow Base64 and similar encodings. In theory, we can allow all ASCII characters, but that will make logging/debugging hard. For the same reason, we also disallow space in session ID. We could also have key system specific session ID sanitization logic, but we choose to keep things simple. This CL also add base::IsAsciiPrintable() which is the same as WTF::IsASCIIPrintable(). Bug: 902828 Test: None. Change-Id: Ic0f7e47ad192aa80734f4b1f6a9e28fe74dff941 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574288 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Reviewed-by: John Rummell <jrummell@chromium.org> Reviewed-by: Wez <wez@chromium.org> Reviewed-by: Yuchen Liu <yucliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#655398}
- Loading branch information