[Webkit-unassigned] [Bug 164868] REGRESSION (Safari 10?): Unable to store CryptoKeyPair in IndexedDB database

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 17 11:22:30 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=164868

--- Comment #3 from Brady Eidson <beidson at apple.com> ---
(In reply to comment #2)
> > 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)

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

-- 
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/9856ce7b/attachment.html>


More information about the webkit-unassigned mailing list