Changeset 239211 in webkit


Ignore:
Timestamp:
Dec 14, 2018 9:44:47 AM (5 years ago)
Author:
youenn@apple.com
Message:

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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r239190 r239211  
     12018-12-14  Youenn Fablet  <youenn@apple.com>
     2
     3        IDB should store RTCCertificate
     4        https://bugs.webkit.org/show_bug.cgi?id=192599
     5
     6        Reviewed by Brady Eidson.
     7
     8        * webrtc/certificates-indexeddb-expected.txt: Added.
     9        * webrtc/certificates-indexeddb.html: Added.
     10
    1112018-12-13  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r239206 r239211  
     12018-12-14  Youenn Fablet  <youenn@apple.com>
     2
     3        IDB should store RTCCertificate
     4        https://bugs.webkit.org/show_bug.cgi?id=192599
     5
     6        Reviewed by Brady Eidson.
     7
     8        In case there is no script execution context, do not create a JS DOM wrapper for RTCCertificate.
     9        Instead, create an empty object so that the deserialization can still succeed.
     10        This should only impact IDB deserialization in the Network Process which does not need the actual JS DOM wrapper.
     11
     12        Test: webrtc/certificates-indexeddb.html
     13
     14        * bindings/js/SerializedScriptValue.cpp:
     15        (WebCore::CloneDeserializer::readTerminal):
     16
    1172018-12-14  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp

    r238754 r239211  
    27182718        }
    27192719
     2720        if (!m_isDOMGlobalObject)
     2721            return constructEmptyObject(m_exec, m_globalObject->objectPrototype());
     2722
    27202723        auto rtcCertificate = RTCCertificate::create(SecurityOrigin::createFromString(origin->string()), expires, WTFMove(fingerprints), certificate->takeString(), keyedMaterial->takeString());
    27212724        return toJSNewlyCreated(m_exec, jsCast<JSDOMGlobalObject*>(m_globalObject), WTFMove(rtcCertificate));
Note: See TracChangeset for help on using the changeset viewer.