[Bug 26413] Inconsistent handling of usages parameter between importKey and generateKey

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26413

Richard Barnes <rlb@ipv.sx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rlb@ipv.sx

--- Comment #1 from Richard Barnes <rlb@ipv.sx> ---
In addition, the errors returned by these methods in the case of unrecognized
usages are different.

generateKey -> InvalidAccessError
deriveKey -> SyntaxError
importKey -> SyntaxError

By majority rule, it seems we should change generateKey to SyntaxError.  That
also seems to make sense, compared to, say, how unrecognized format values are
handled.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 2 September 2014 23:53:29 UTC