angler-fishThe Vulnerability History Project

WebCrypto: allow AlgorithmIdentifiers to be strings (and not just dictionaries).

      This is described by the WebCrypto spec:

https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-AlgorithmIdentifier

And used during algorithm normalization:

https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-normalize-an-algorithm


This first changelist is not completely spec compliant, as it recognizes more than just DOMStrings. Will address that in a follow-up change.

Testing: Some of the existing tests have been modified to use the shorthand notation for AlgorithmIdentifier (both when inside a dictionary, and part of the method call).

BUG=437066

Review URL: https://codereview.chromium.org/765623002

git-svn-id: svn://svn.chromium.org/blink/trunk@186323 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    
commit 6c8a5ef266e1cb50ec3310030a818c51abc5af62
-17
-45
+1 -1
+2 -2
+1 -1
+1 -1
+1 -1
+22 -56
+2 -5
+12 -12
+11 -11
+22 -12
+1 -3
expand_less