New issue
Advanced search Search tips

Issue 656997 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 441604
Owner: ----
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

CryptoKey's algorithm attribute should return the same object every time

Project Member Reported by foolip@chromium.org, Oct 18 2016

Issue description

This follows from the fact that the spec has an internal slot for it:
https://w3c.github.io/webcrypto/Overview.html#dfn-CryptoKey-algorithm

Here's a test using testharness.js that would fail:

promise_test(() => {
  var algorithm = { name: "ECDSA", namedCurve: "P-256" };
  return crypto.subtle.generateKey(algorithm, false, ["sign"]).then(key => {
    assert_equals(key.publicKey.algorithm, key.publicKey.algorithm);
  });
});

Adapted from https://software.hixie.ch/utilities/js/live-dom-viewer/saved/4582

In a cursory grep of web-platform-tests this doesn't seem to be covered.
 

Comment 1 by eroman@chromium.org, Oct 18 2016

Mergedinto: 441604
Status: Duplicate (was: Untriaged)

Sign in to add a comment