Open Bug 1497357 Opened 7 years ago Updated 1 year ago

ClearKey setServerCertificate rejects with NotSupportedError instead of resolving with false

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: cpearce, Unassigned)

References

(Blocks 1 open bug)

Details

According to the MediaKey.setServerCertificate spec [1] we should resolve with `false` if "If the Key System implementation represented by this object's cdm implementation value does not support server certificates". All other failures are represented by rejecting with an exception. Widevine supports setServerCertificate() but ClearKey does not. However ClearKey (on desktop) isn't following the spec; it's rejecting with NotSupportedError [2], so we should check into ChromiumCDMProxy::SetServerCertificate(). We could also have something in MediaKeySystemAccess.cpp to denote which keysystems we expect to support setServerCertfificate, and check that in ChromiumCDMProxy::SetServerCertificate(). [1] https://www.w3.org/TR/encrypted-media/#dom-mediakeys-setservercertificate [2] https://searchfox.org/mozilla-central/rev/29aea2a2a3bd0f5e25ce0b60a76053fb25ba5149/media/gmp-clearkey/0.1/ClearKeySessionManager.cpp#618
Rank: 25
Priority: -- → P3
Severity: normal → S3
Blocks: clearkey
You need to log in before you can comment on or make changes to this bug.