[encrypted-media] InvalidAccessError usage is questionable

ddorwin has just created a new issue for 
https://github.com/w3c/encrypted-media:

== InvalidAccessError usage is questionable ==
Originally filed by @domenic in [bug 
27283](https://www.w3.org/Bugs/Public/show_bug.cgi?id=27283). See the 
original bug for the history. @domenic also filed related [bug 
27284](https://www.w3.org/Bugs/Public/show_bug.cgi?id=27284) asking 
whether `InvalidAccessError` be should discouraged.

Many uses of `InvalidAccessError` relate to empty parameters. If 
`TypeError` is more appropriate, we should switch those. (@domenic, is
 there a definition of `TypeError`? I could not find one in Web IDL.)

However, there are others related to invalid string values and even 
data that cannot be sanitized. (Some of those were added since the 
original bug was last updated.) We need to determine appropriate 
exception names for these.

See https://github.com/w3c/encrypted-media/issues/103

Received on Monday, 19 October 2015 23:28:57 UTC