EME browser tests: Only report NOTSUPPORTEDERROR when promise is rejected with NotSupportedError |
|||
Issue descriptioneme_player_js/player_utils.js fails the tests with `NOTSUPPORTEDERROR` if requestMediaKeySystemAccess() fails for any reason [1]. For correctness, this should only be reported if the promise is rejected with NotSupportedError. To ensure the reason is not detectable by the application (i.e. issue 691290), we should also check (case-sensitively) the message attribute of the DOMException. [1] https://cs.chromium.org/chromium/src/media/test/data/eme_player_js/player_utils.js?type=cs&q=NOTSUPPORTEDERROR&sq=package:chromium&l=171
,
Feb 13 2017
Probably. Having different messages might expose whether a request to use a key system was blocked and how. It could also vary as we change where and how the implementation checks various settings. If the intent is to help developers, Blink supports supplying a different message to the dev tools console than the one the application gets.
,
Feb 13 2017
> If the intent is to help developers, Blink supports supplying a different message to the dev tools console than the one the application gets. Do you have examples on this? I like this idea.
,
Oct 23 2017
,
Aug 1
|
|||
►
Sign in to add a comment |
|||
Comment 1 by xhw...@chromium.org
, Feb 13 2017