Bug 126023

Summary: WebCrypto APIs should never throw
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, jiewen_tan, rob, sam, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 160883    

Description Alexey Proskuryakov 2013-12-19 15:45:47 PST
This is not quite finalized, but it appears that all errors will be reported as promise rejections of type DOMException (this includes WebIDL exceptions that will be converted into rejections).

See <https://www.w3.org/Bugs/Public/show_bug.cgi?id=21740>.
Comment 1 Jiewen Tan 2016-08-15 18:34:50 PDT
It looks like that in the importKey method, there is an exception:
https://www.w3.org/TR/WebCryptoAPI/#dfn-SubtleCrypto-method-importKey

Will send an email to the working group to confirm the difference.
Comment 2 Radar WebKit Bug Importer 2016-08-15 18:35:27 PDT
<rdar://problem/27858554>
Comment 3 youenn fablet 2016-09-15 12:15:09 PDT
bug 162010 is probably a duplicate of this one, or at least partially.