Bug 126033

Summary: WebCrypto importKey should fail when requesting usages that are not allowed by key data
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, jiewen_tan, rob, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=164446
Bug Depends on:    
Bug Blocks: 160883    

Description Alexey Proskuryakov 2013-12-19 17:06:55 PST
We currently just intersect usages, and don't complain. A spec proposal suggests that the operation should fail when an importKey argument asks for something that's not allowed in key data (e.g. in JWK).
Comment 1 Radar WebKit Bug Importer 2016-08-15 18:27:31 PDT
<rdar://problem/27858490>
Comment 2 Jiewen Tan 2016-11-10 12:23:12 PST
The bug is resolved by Bug 164446.