| Index: content/child/webcrypto/jwk.cc
|
| diff --git a/content/child/webcrypto/jwk.cc b/content/child/webcrypto/jwk.cc
|
| index b0073cc1b8f86cbf216f73c9fb2ec7a887110009..ed20ec74efc8e16a243e3a17e89ccb016eb34031 100644
|
| --- a/content/child/webcrypto/jwk.cc
|
| +++ b/content/child/webcrypto/jwk.cc
|
| @@ -448,7 +448,8 @@ JwkWriter::JwkWriter(const std::string& algorithm,
|
| bool extractable,
|
| blink::WebCryptoKeyUsageMask usages,
|
| const std::string& kty) {
|
| - dict_.SetString("alg", algorithm);
|
| + if (!algorithm.empty())
|
| + dict_.SetString("alg", algorithm);
|
| dict_.Set("key_ops", CreateJwkKeyOpsFromWebCryptoUsages(usages));
|
| dict_.SetBoolean("ext", extractable);
|
| dict_.SetString("kty", kty);
|
|
|