[Webkit-unassigned] [Bug 164868] CryptoKeyPair objects are not structured cloneable, therefore they cannot be put in IndexedDB

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 17 11:46:42 PST 2016


--- Comment #8 from Brady Eidson <beidson at apple.com> ---
(In reply to comment #7)
> I believe the reason Chrome and Firefox allow the put is that they do not
> recognize the CryptoKeyPair as a "CryptoKeyPair" - They think it's an
> "Object"
> And "Objects" are structured cloneable as long as each of their properties
> are.

Got it.

At one point in the history of the spec, CryptoKeyPair objects were their own interface, therefore their own explicit object type.

Now they're just an object dictionary (https://w3c.github.io/webcrypto/Overview.html#keypair), which means they are an "Object", which means they are structured cloneable

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161117/b48f3c11/attachment.html>

More information about the webkit-unassigned mailing list