New issue
Advanced search Search tips

Issue 648472 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 570216



Sign in to add a comment

CDM should avoid returning errors no longer mentioned by the EME spec

Project Member Reported by jrumm...@chromium.org, Sep 20 2016

Issue description

The latest EME spec (http://w3c.github.io/encrypted-media/#exceptions) only has 4 possible errors listed:
    TypeError
    NotSupportedError
    InvalidStateError
    QuotaExceededError

The first one is new, the other 3 have been around for a while.

However, the list of possible errors in CDM_8 also includes:
    kInvalidAccessError = 15,
    kUnknownError = 30,
    kClientError = 100,
    kOutputError = 101

Of these 4, Widevine uses all of them except kClientError. This should be fixed.


From the latest spec, here are the places where the CDM should reply with TypeError. The plan is to have kInvalidAccessError become a TypeError for backwards compatibility.

load(), step 8.8.2:
"If the stored session's session type is not the same as the current MediaKeySession session type, reject promise with a newly created TypeError."

update(), step 6.7.1:
"If the format of sanitized response is invalid in any way, reject promise with a newly created TypeError."

update(), step 6.7.2:
"Otherwise reject promise with a newly created TypeError." (after matching the license(s) in response with the sessionType).
 
Cc: xhw...@chromium.org
Owner: jrumm...@chromium.org

Comment 2 by xhw...@chromium.org, Jun 14 2017

Status: Fixed (was: Available)

Sign in to add a comment