IDB should store RTCCertificate
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2018 17:44:47 +0000 (17:44 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2018 17:44:47 +0000 (17:44 +0000)
commitdbb2b7ad87af8f531ed1f91e327e0269724509cd
treeebf1cddcfe60e4bef9c85fe0b9fa0e1ae3e4abe2
parent783a5df876a1171968d96df3c75b90c9a56eb5af
IDB should store RTCCertificate
https://bugs.webkit.org/show_bug.cgi?id=192599

Reviewed by Brady Eidson.

Source/WebCore:

In case there is no script execution context, do not create a JS DOM wrapper for RTCCertificate.
Instead, create an empty object so that the deserialization can still succeed.
This should only impact IDB deserialization in the Network Process which does not need the actual JS DOM wrapper.

Test: webrtc/certificates-indexeddb.html

* bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneDeserializer::readTerminal):

LayoutTests:

* webrtc/certificates-indexeddb-expected.txt: Added.
* webrtc/certificates-indexeddb.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webrtc/certificates-indexeddb-expected.txt [new file with mode: 0644]
LayoutTests/webrtc/certificates-indexeddb.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/SerializedScriptValue.cpp