<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (Safari 10?): Unable to store CryptoKeyPair in IndexedDB database"
href="https://bugs.webkit.org/show_bug.cgi?id=164868#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (Safari 10?): Unable to store CryptoKeyPair in IndexedDB database"
href="https://bugs.webkit.org/show_bug.cgi?id=164868">bug 164868</a>
from <span class="vcard"><a class="email" href="mailto:beidson@apple.com" title="Brady Eidson <beidson@apple.com>"> <span class="fn">Brady Eidson</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=164868#c2">comment #2</a>)
<span class="quote">> > This code works in Chrome and Firefox.
>
> but then
>
> > Neither browser returns a CryptoKeyPair, and instead returns a plain object.
>
> This makes no sense to me.
> If it truly works, it would have to also *return* a CryptoKeyPair.
>
> Are you sure CryptoKeyPair is actually serializable WRT the structured clone
> algorithm?
>
> (I haven't looked into it yet)</span >
The error we throw: DataCloneError "An object could not be cloned"
This strongly suggests that CryptoKeyPairs are not structured cloneable, and therefore are not allowed to be stored in IDB</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>