Changeset 232943 in webkit
- Timestamp:
- Jun 18, 2018 1:48:07 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r232903 r232943 1 2018-06-18 Youenn Fablet <youenn@apple.com> 2 3 Expose RTCPeerConnectionIceEventInit constructor 4 https://bugs.webkit.org/show_bug.cgi?id=186770 5 6 Reviewed by Alex Christensen. 7 8 * web-platform-tests/webrtc/RTCPeerConnectionIceEvent-constructor-expected.txt: 9 Updated expectation as per patch. 10 * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt: 11 Rebasing this file, changes are unrelated but test is marked as flaky. 12 1 13 2018-06-16 Brendan McLoughlin <brendan@bocoup.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnectionIceEvent-constructor-expected.txt
r218181 r232943 1 1 2 FAIL RTCPeerConnectionIceEvent with no arguments throws TypeError assert_throws: function "() => { 3 new RTCPeerConnectionIceEvent(); 4 }" threw object "ReferenceError: Can't find variable: RTCPeerConnectionIceEvent" ("ReferenceError") expected object "TypeError" ("TypeError") 5 FAIL RTCPeerConnectionIceEvent with no eventInitDict (default) Can't find variable: RTCPeerConnectionIceEvent 6 FAIL RTCPeerConnectionIceEvent with empty object as eventInitDict (default) Can't find variable: RTCPeerConnectionIceEvent 7 FAIL RTCPeerConnectionIceEvent.candidate is null when constructed with { candidate: null } Can't find variable: RTCPeerConnectionIceEvent 8 FAIL RTCPeerConnectionIceEvent.candidate is null when constructed with { candidate: undefined } Can't find variable: RTCPeerConnectionIceEvent 9 FAIL RTCPeerConnectionIceEvent with RTCIceCandidate Can't find variable: RTCPeerConnectionIceEvent 10 FAIL RTCPeerConnectionIceEvent with non RTCIceCandidate object throws assert_throws: function "() => new RTCPeerConnectionIceEvent("type", { candidate: plain })" threw object "ReferenceError: Can't find variable: RTCPeerConnectionIceEvent" ("ReferenceError") expected object "TypeError" ("TypeError") 11 FAIL RTCPeerConnectionIceEvent bubbles and cancelable Can't find variable: RTCPeerConnectionIceEvent 2 PASS RTCPeerConnectionIceEvent with no arguments throws TypeError 3 PASS RTCPeerConnectionIceEvent with no eventInitDict (default) 4 PASS RTCPeerConnectionIceEvent with empty object as eventInitDict (default) 5 PASS RTCPeerConnectionIceEvent.candidate is null when constructed with { candidate: null } 6 PASS RTCPeerConnectionIceEvent.candidate is null when constructed with { candidate: undefined } 7 PASS RTCPeerConnectionIceEvent with RTCIceCandidate 8 PASS RTCPeerConnectionIceEvent with non RTCIceCandidate object throws 9 PASS RTCPeerConnectionIceEvent bubbles and cancelable 12 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt
r222307 r232943 1 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Can only call RTCPeerConnection.createOffer on instances of RTCPeerConnection 2 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Can only call RTCPeerConnection.createAnswer on instances of RTCPeerConnection 3 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Can only call RTCPeerConnection.addIceCandidate on instances of RTCPeerConnection 4 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Can only call RTCPeerConnection.getStats on instances of RTCPeerConnection 5 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Argument 1 ('description') to RTCPeerConnection.setLocalDescription must be an instance of RTCSessionDescription 6 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Argument 1 ('description') to RTCPeerConnection.setRemoteDescription must be an instance of RTCSessionDescription 7 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Not enough arguments 1 8 Description 2 9 3 10 This test verifies the availability of the RTCPeerConnection interface. 4 11 12 13 Harness Error (FAIL), message = Not enough arguments 5 14 6 15 PASS EventTarget interface: existence and properties of interface object … … 9 18 PASS EventTarget interface: existence and properties of interface prototype object 10 19 PASS EventTarget interface: existence and properties of interface prototype object's "constructor" property 20 PASS EventTarget interface: existence and properties of interface prototype object's @@unscopables property 11 21 PASS RTCPeerConnection interface: existence and properties of interface object 12 22 PASS RTCPeerConnection interface object length … … 14 24 PASS RTCPeerConnection interface: existence and properties of interface prototype object 15 25 PASS RTCPeerConnection interface: existence and properties of interface prototype object's "constructor" property 26 PASS RTCPeerConnection interface: existence and properties of interface prototype object's @@unscopables property 16 27 PASS RTCPeerConnection interface: operation createOffer(RTCOfferOptions) 28 PASS Unscopable handled correctly for createOffer(RTCOfferOptions) on RTCPeerConnection 17 29 PASS RTCPeerConnection interface: operation createAnswer(RTCAnswerOptions) 30 PASS Unscopable handled correctly for createAnswer(RTCAnswerOptions) on RTCPeerConnection 18 31 FAIL RTCPeerConnection interface: operation setLocalDescription(RTCSessionDescription) assert_equals: property has wrong .length expected 1 but got 0 32 PASS Unscopable handled correctly for setLocalDescription(RTCSessionDescription) on RTCPeerConnection 19 33 PASS RTCPeerConnection interface: attribute localDescription 34 PASS Unscopable handled correctly for localDescription property on RTCPeerConnection 20 35 PASS RTCPeerConnection interface: attribute currentLocalDescription 36 PASS Unscopable handled correctly for currentLocalDescription property on RTCPeerConnection 21 37 PASS RTCPeerConnection interface: attribute pendingLocalDescription 38 PASS Unscopable handled correctly for pendingLocalDescription property on RTCPeerConnection 22 39 FAIL RTCPeerConnection interface: operation setRemoteDescription(RTCSessionDescription) assert_equals: property has wrong .length expected 1 but got 0 40 PASS Unscopable handled correctly for setRemoteDescription(RTCSessionDescription) on RTCPeerConnection 23 41 PASS RTCPeerConnection interface: attribute remoteDescription 42 PASS Unscopable handled correctly for remoteDescription property on RTCPeerConnection 24 43 PASS RTCPeerConnection interface: attribute currentRemoteDescription 44 PASS Unscopable handled correctly for currentRemoteDescription property on RTCPeerConnection 25 45 PASS RTCPeerConnection interface: attribute pendingRemoteDescription 46 PASS Unscopable handled correctly for pendingRemoteDescription property on RTCPeerConnection 26 47 PASS RTCPeerConnection interface: operation addIceCandidate(RTCIceCandidate) 48 PASS Unscopable handled correctly for addIceCandidate(RTCIceCandidate) on RTCPeerConnection 27 49 PASS RTCPeerConnection interface: attribute signalingState 50 PASS Unscopable handled correctly for signalingState property on RTCPeerConnection 28 51 PASS RTCPeerConnection interface: attribute iceGatheringState 52 PASS Unscopable handled correctly for iceGatheringState property on RTCPeerConnection 29 53 PASS RTCPeerConnection interface: attribute iceConnectionState 54 PASS Unscopable handled correctly for iceConnectionState property on RTCPeerConnection 30 55 FAIL RTCPeerConnection interface: attribute canTrickleIceCandidates assert_true: The prototype object must have a property "canTrickleIceCandidates" expected true got false 56 PASS Unscopable handled correctly for canTrickleIceCandidates property on RTCPeerConnection 31 57 PASS RTCPeerConnection interface: operation getConfiguration() 58 PASS Unscopable handled correctly for getConfiguration() on RTCPeerConnection 32 59 PASS RTCPeerConnection interface: operation setConfiguration(RTCConfiguration) 60 PASS Unscopable handled correctly for setConfiguration(RTCConfiguration) on RTCPeerConnection 33 61 PASS RTCPeerConnection interface: operation close() 62 PASS Unscopable handled correctly for close() on RTCPeerConnection 34 63 PASS RTCPeerConnection interface: attribute onnegotiationneeded 64 PASS Unscopable handled correctly for onnegotiationneeded property on RTCPeerConnection 35 65 PASS RTCPeerConnection interface: attribute onicecandidate 66 PASS Unscopable handled correctly for onicecandidate property on RTCPeerConnection 36 67 PASS RTCPeerConnection interface: attribute onsignalingstatechange 68 PASS Unscopable handled correctly for onsignalingstatechange property on RTCPeerConnection 37 69 PASS RTCPeerConnection interface: attribute oniceconnectionstatechange 70 PASS Unscopable handled correctly for oniceconnectionstatechange property on RTCPeerConnection 38 71 PASS RTCPeerConnection interface: attribute onicegatheringstatechange 72 PASS Unscopable handled correctly for onicegatheringstatechange property on RTCPeerConnection 39 73 FAIL RTCPeerConnection interface: operation createOffer(RTCSessionDescriptionCallback, RTCPeerConnectionErrorCallback, RTCOfferOptions) assert_throws: calling operation with this = null didn't throw TypeError function "function () { 40 74 fn.apply(obj, args); 41 75 }" did not throw 76 PASS Unscopable handled correctly for createOffer(RTCSessionDescriptionCallback, RTCPeerConnectionErrorCallback, RTCOfferOptions) on RTCPeerConnection 42 77 FAIL RTCPeerConnection interface: operation setLocalDescription(RTCSessionDescription, VoidFunction, RTCPeerConnectionErrorCallback) assert_equals: property has wrong .length expected 1 but got 0 78 PASS Unscopable handled correctly for setLocalDescription(RTCSessionDescription, VoidFunction, RTCPeerConnectionErrorCallback) on RTCPeerConnection 43 79 FAIL RTCPeerConnection interface: operation createAnswer(RTCSessionDescriptionCallback, RTCPeerConnectionErrorCallback) assert_throws: calling operation with this = null didn't throw TypeError function "function () { 44 80 fn.apply(obj, args); 45 81 }" did not throw 82 PASS Unscopable handled correctly for createAnswer(RTCSessionDescriptionCallback, RTCPeerConnectionErrorCallback) on RTCPeerConnection 46 83 FAIL RTCPeerConnection interface: operation setRemoteDescription(RTCSessionDescription, VoidFunction, RTCPeerConnectionErrorCallback) assert_equals: property has wrong .length expected 1 but got 0 84 PASS Unscopable handled correctly for setRemoteDescription(RTCSessionDescription, VoidFunction, RTCPeerConnectionErrorCallback) on RTCPeerConnection 47 85 FAIL RTCPeerConnection interface: operation addIceCandidate(RTCIceCandidate, VoidFunction, RTCPeerConnectionErrorCallback) assert_throws: calling operation with this = null didn't throw TypeError function "function () { 48 86 fn.apply(obj, args); 49 87 }" did not throw 88 PASS Unscopable handled correctly for addIceCandidate(RTCIceCandidate, VoidFunction, RTCPeerConnectionErrorCallback) on RTCPeerConnection 50 89 FAIL RTCPeerConnection interface: operation getStats(MediaStreamTrack, RTCStatsCallback, RTCPeerConnectionErrorCallback) assert_throws: calling operation with this = null didn't throw TypeError function "function () { 51 90 fn.apply(obj, args); 52 91 }" did not throw 92 PASS Unscopable handled correctly for getStats(MediaStreamTrack, RTCStatsCallback, RTCPeerConnectionErrorCallback) on RTCPeerConnection 53 93 FAIL RTCPeerConnection interface: operation generateCertificate(AlgorithmIdentifier) assert_own_property: interface object missing static operation expected property "generateCertificate" missing 94 PASS Unscopable handled correctly for generateCertificate(AlgorithmIdentifier) on RTCPeerConnection 54 95 PASS RTCPeerConnection interface: operation getSenders() 96 PASS Unscopable handled correctly for getSenders() on RTCPeerConnection 55 97 PASS RTCPeerConnection interface: operation getReceivers() 98 PASS Unscopable handled correctly for getReceivers() on RTCPeerConnection 56 99 PASS RTCPeerConnection interface: operation addTrack(MediaStreamTrack, MediaStream) 100 PASS Unscopable handled correctly for addTrack(MediaStreamTrack, MediaStream) on RTCPeerConnection 57 101 PASS RTCPeerConnection interface: operation removeTrack(RTCRtpSender) 102 PASS Unscopable handled correctly for removeTrack(RTCRtpSender) on RTCPeerConnection 58 103 PASS RTCPeerConnection interface: attribute ontrack 104 PASS Unscopable handled correctly for ontrack property on RTCPeerConnection 59 105 PASS RTCPeerConnection interface: operation createDataChannel(DOMString, RTCDataChannelInit) 106 PASS Unscopable handled correctly for createDataChannel(DOMString, RTCDataChannelInit) on RTCPeerConnection 60 107 PASS RTCPeerConnection interface: attribute ondatachannel 108 PASS Unscopable handled correctly for ondatachannel property on RTCPeerConnection 61 109 FAIL RTCPeerConnection interface: attribute dtmf assert_true: The prototype object must have a property "dtmf" expected true got false 110 PASS Unscopable handled correctly for dtmf property on RTCPeerConnection 62 111 PASS RTCPeerConnection interface: operation getStats(MediaStreamTrack) 112 PASS Unscopable handled correctly for getStats(MediaStreamTrack) on RTCPeerConnection 63 113 FAIL RTCPeerConnection interface: operation setIdentityProvider(DOMString, DOMString, DOMString) assert_own_property: interface prototype object missing non-static operation expected property "setIdentityProvider" missing 114 PASS Unscopable handled correctly for setIdentityProvider(DOMString, DOMString, DOMString) on RTCPeerConnection 64 115 FAIL RTCPeerConnection interface: operation getIdentityAssertion() assert_own_property: interface prototype object missing non-static operation expected property "getIdentityAssertion" missing 116 PASS Unscopable handled correctly for getIdentityAssertion() on RTCPeerConnection 65 117 FAIL RTCPeerConnection interface: attribute peerIdentity assert_true: The prototype object must have a property "peerIdentity" expected true got false 118 PASS Unscopable handled correctly for peerIdentity property on RTCPeerConnection 66 119 FAIL RTCPeerConnection interface: attribute idpLoginUrl assert_true: The prototype object must have a property "idpLoginUrl" expected true got false 120 PASS Unscopable handled correctly for idpLoginUrl property on RTCPeerConnection 67 121 PASS RTCPeerConnection must be primary interface of pc 68 122 PASS Stringification of pc -
trunk/Source/WebCore/ChangeLog
r232942 r232943 1 2018-06-18 Youenn Fablet <youenn@apple.com> 2 3 Expose RTCPeerConnectionIceEventInit constructor 4 https://bugs.webkit.org/show_bug.cgi?id=186770 5 6 Reviewed by Alex Christensen. 7 8 Add event constructor as per specification. 9 Add support for the url attribute. 10 For that purpose, we need to pipe that information from LibWebRTCMediaEndpoint 11 up to RTCPeerConnectionIceEvent. 12 13 Covered by rebased test. 14 15 * Modules/mediastream/PeerConnectionBackend.cpp: 16 (WebCore::PeerConnectionBackend::fireICECandidateEvent): 17 (WebCore::PeerConnectionBackend::disableICECandidateFiltering): 18 (WebCore::PeerConnectionBackend::newICECandidate): 19 (WebCore::PeerConnectionBackend::doneGatheringCandidates): 20 (WebCore::PeerConnectionBackend::finishedRegisteringMDNSName): 21 * Modules/mediastream/PeerConnectionBackend.h: 22 * Modules/mediastream/RTCPeerConnectionIceEvent.cpp: 23 (WebCore::RTCPeerConnectionIceEvent::create): 24 (WebCore::RTCPeerConnectionIceEvent::RTCPeerConnectionIceEvent): 25 * Modules/mediastream/RTCPeerConnectionIceEvent.h: 26 (WebCore::RTCPeerConnectionIceEvent::url const): 27 * Modules/mediastream/RTCPeerConnectionIceEvent.idl: 28 * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: 29 (WebCore::LibWebRTCMediaEndpoint::OnIceCandidate): 30 * bindings/js/WebCoreBuiltinNames.h: 31 * dom/EventNames.in: 32 1 33 2018-06-18 Simon Fraser <simon.fraser@apple.com> 2 34 -
trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.cpp
r231796 r232943 353 353 } 354 354 355 void PeerConnectionBackend::fireICECandidateEvent(RefPtr<RTCIceCandidate>&& candidate )356 { 357 ASSERT(isMainThread()); 358 359 m_peerConnection.fireEvent(RTCPeerConnectionIceEvent::create(false, false, WTFMove(candidate) ));355 void PeerConnectionBackend::fireICECandidateEvent(RefPtr<RTCIceCandidate>&& candidate, String&& serverURL) 356 { 357 ASSERT(isMainThread()); 358 359 m_peerConnection.fireEvent(RTCPeerConnectionIceEvent::create(false, false, WTFMove(candidate), WTFMove(serverURL))); 360 360 } 361 361 … … 369 369 m_shouldFilterICECandidates = false; 370 370 for (auto& pendingICECandidate : m_pendingICECandidates) 371 fireICECandidateEvent(RTCIceCandidate::create(WTFMove(pendingICECandidate.sdp), WTFMove(pendingICECandidate.mid), pendingICECandidate.sdpMLineIndex) );371 fireICECandidateEvent(RTCIceCandidate::create(WTFMove(pendingICECandidate.sdp), WTFMove(pendingICECandidate.mid), pendingICECandidate.sdpMLineIndex), WTFMove(pendingICECandidate.serverURL)); 372 372 m_pendingICECandidates.clear(); 373 373 } … … 425 425 } 426 426 427 void PeerConnectionBackend::newICECandidate(String&& sdp, String&& mid, unsigned short sdpMLineIndex )427 void PeerConnectionBackend::newICECandidate(String&& sdp, String&& mid, unsigned short sdpMLineIndex, String&& serverURL) 428 428 { 429 429 ALWAYS_LOG(LOGIDENTIFIER, "Gathered ice candidate:", sdp); … … 431 431 432 432 if (!m_shouldFilterICECandidates) { 433 fireICECandidateEvent(RTCIceCandidate::create(WTFMove(sdp), WTFMove(mid), sdpMLineIndex) );433 fireICECandidateEvent(RTCIceCandidate::create(WTFMove(sdp), WTFMove(mid), sdpMLineIndex), WTFMove(serverURL)); 434 434 return; 435 435 } 436 436 if (sdp.find(" host ", 0) != notFound) { 437 437 // FIXME: We might need to clear all pending candidates when setting again local description. 438 m_pendingICECandidates.append(PendingICECandidate { String { sdp }, WTFMove(mid), sdpMLineIndex });438 m_pendingICECandidates.append(PendingICECandidate { String { sdp }, WTFMove(mid), sdpMLineIndex, WTFMove(serverURL) }); 439 439 if (RuntimeEnabledFeatures::sharedFeatures().mdnsICECandidatesEnabled()) { 440 440 auto ipAddress = extractIPAddres(sdp); … … 445 445 return; 446 446 } 447 fireICECandidateEvent(RTCIceCandidate::create(filterICECandidate(WTFMove(sdp)), WTFMove(mid), sdpMLineIndex) );447 fireICECandidateEvent(RTCIceCandidate::create(filterICECandidate(WTFMove(sdp)), WTFMove(mid), sdpMLineIndex), WTFMove(serverURL)); 448 448 } 449 449 … … 457 457 return; 458 458 459 m_peerConnection.fireEvent(RTCPeerConnectionIceEvent::create(false, false, nullptr ));459 m_peerConnection.fireEvent(RTCPeerConnectionIceEvent::create(false, false, nullptr, { })); 460 460 m_peerConnection.updateIceGatheringState(RTCIceGatheringState::Complete); 461 461 m_pendingICECandidates.clear(); … … 488 488 auto sdp = candidate.sdp; 489 489 sdp.replace(ipAddress, name); 490 fireICECandidateEvent(RTCIceCandidate::create( String(sdp), String(candidate.mid), candidate.sdpMLineIndex));490 fireICECandidateEvent(RTCIceCandidate::create(WTFMove(sdp), WTFMove(candidate.mid), candidate.sdpMLineIndex), WTFMove(candidate.serverURL)); 491 491 candidates.append(&candidate); 492 492 } -
trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h
r230290 r232943 114 114 virtual void emulatePlatformEvent(const String& action) = 0; 115 115 116 void newICECandidate(String&& sdp, String&& mid, unsigned short sdpMLineIndex );116 void newICECandidate(String&& sdp, String&& mid, unsigned short sdpMLineIndex, String&& serverURL); 117 117 void disableICECandidateFiltering(); 118 118 void enableICECandidateFiltering(); … … 132 132 133 133 protected: 134 void fireICECandidateEvent(RefPtr<RTCIceCandidate>&& );134 void fireICECandidateEvent(RefPtr<RTCIceCandidate>&&, String&& url); 135 135 void doneGatheringCandidates(); 136 136 … … 180 180 String mid; 181 181 unsigned short sdpMLineIndex; 182 String serverURL; 182 183 }; 183 184 Vector<PendingICECandidate> m_pendingICECandidates; -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.cpp
r223728 r232943 33 33 namespace WebCore { 34 34 35 Ref<RTCPeerConnectionIceEvent> RTCPeerConnectionIceEvent::create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate )35 Ref<RTCPeerConnectionIceEvent> RTCPeerConnectionIceEvent::create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate, String&& serverURL) 36 36 { 37 return adoptRef(*new RTCPeerConnectionIceEvent( canBubble, cancelable, WTFMove(candidate)));37 return adoptRef(*new RTCPeerConnectionIceEvent(eventNames().icecandidateEvent, canBubble, cancelable, WTFMove(candidate), WTFMove(serverURL))); 38 38 } 39 39 40 RTCPeerConnectionIceEvent::RTCPeerConnectionIceEvent(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate) 41 : Event(eventNames().icecandidateEvent, canBubble, cancelable) 40 Ref<RTCPeerConnectionIceEvent> RTCPeerConnectionIceEvent::create(const AtomicString& type, Init&& init) 41 { 42 return adoptRef(*new RTCPeerConnectionIceEvent(type, init.bubbles, init.cancelable, WTFMove(init.candidate), WTFMove(init.url))); 43 } 44 45 RTCPeerConnectionIceEvent::RTCPeerConnectionIceEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate, String&& serverURL) 46 : Event(type, canBubble, cancelable) 42 47 , m_candidate(WTFMove(candidate)) 48 , m_url(WTFMove(serverURL)) 43 49 { 44 50 } -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.h
r214330 r232943 37 37 virtual ~RTCPeerConnectionIceEvent(); 38 38 39 static Ref<RTCPeerConnectionIceEvent> create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&); 39 struct Init : EventInit { 40 RefPtr<RTCIceCandidate> candidate; 41 String url; 42 }; 43 44 static Ref<RTCPeerConnectionIceEvent> create(const AtomicString& type, Init&&); 45 static Ref<RTCPeerConnectionIceEvent> create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&, String&& serverURL); 40 46 41 47 RTCIceCandidate* candidate() const; 48 const String& url() const { return m_url; } 42 49 43 50 virtual EventInterface eventInterface() const; 44 51 45 52 private: 46 RTCPeerConnectionIceEvent( bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&);53 RTCPeerConnectionIceEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&, String&& serverURL); 47 54 48 55 RefPtr<RTCIceCandidate> m_candidate; 56 String m_url; 49 57 }; 50 58 -
trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.idl
r214330 r232943 24 24 */ 25 25 26 // FIXME 169662: missing Constructor(DOMString type, optional RTCPeerConnectionIceEventInit eventInitDict) 26 dictionary RTCPeerConnectionIceEventInit : EventInit { 27 RTCIceCandidate? candidate; 28 DOMString? url; 29 }; 30 27 31 [ 28 NoInterfaceObject,29 32 Conditional=WEB_RTC, 33 Constructor(DOMString type, optional RTCPeerConnectionIceEventInit eventInitDict), 30 34 EnabledAtRuntime=PeerConnection 31 35 ] interface RTCPeerConnectionIceEvent : Event { 32 36 readonly attribute RTCIceCandidate? candidate; 33 // FIXME 169662: missing url37 readonly attribute DOMString? url; 34 38 }; -
trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
r231512 r232943 868 868 auto sdpMLineIndex = safeCast<unsigned short>(rtcCandidate->sdp_mline_index()); 869 869 870 callOnMainThread([protectedThis = makeRef(*this), mid = fromStdString(rtcCandidate->sdp_mid()), sdp = fromStdString(sdp), sdpMLineIndex ]() mutable {871 if (protectedThis->isStopped()) 872 return; 873 protectedThis->m_peerConnectionBackend.newICECandidate(WTFMove(sdp), WTFMove(mid), sdpMLineIndex );870 callOnMainThread([protectedThis = makeRef(*this), mid = fromStdString(rtcCandidate->sdp_mid()), sdp = fromStdString(sdp), sdpMLineIndex, url = fromStdString(rtcCandidate->server_url())]() mutable { 871 if (protectedThis->isStopped()) 872 return; 873 protectedThis->m_peerConnectionBackend.newICECandidate(WTFMove(sdp), WTFMove(mid), sdpMLineIndex, WTFMove(url)); 874 874 }); 875 875 } -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r231709 r232943 128 128 macro(RTCIceTransport) \ 129 129 macro(RTCPeerConnection) \ 130 macro(RTCPeerConnectionIceEvent) \ 130 131 macro(RTCRtpReceiver) \ 131 132 macro(RTCRtpSender) \ -
trunk/Source/WebCore/dom/EventNames.in
r229112 r232943 54 54 RTCDataChannelEvent conditional=WEB_RTC 55 55 RTCDTMFToneChangeEvent conditional=WEB_RTC_DTMF 56 RTCPeerConnectionIceEvent conditional=WEB_RTC 56 57 RTCTrackEvent conditional=WEB_RTC 57 58 SpeechSynthesisEvent conditional=SPEECH_SYNTHESIS
Note: See TracChangeset
for help on using the changeset viewer.