Bug 125641

Summary: Make algorithm.name return registered name, not normalized one
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore Misc.Assignee: Alexey Proskuryakov <ap>
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 122679    
Description Flags
proposed patch andersca: review+

Description Alexey Proskuryakov 2013-12-12 10:12:30 PST
Currently, WebCrypto editor's draft stipulates that algorithm name is lowercased as part of normalization.

But it makes little sense to register algorithms as mixed (mostly upper) case, but return the name lowercased. Our implementations don't bother respecting this, and signs are that the spec will change.

I'd like to match other implementations here, because sticking to the spec only makes us fail 3rd party test suites for no good reason.
Comment 1 Alexey Proskuryakov 2013-12-12 10:12:44 PST
s/Our implementations don't bother/Other implementations don't bother/
Comment 2 Alexey Proskuryakov 2013-12-12 10:16:24 PST
Created attachment 219091 [details]
proposed patch
Comment 3 Alexey Proskuryakov 2013-12-12 10:18:41 PST
Committed <http://trac.webkit.org/r160491>.