diff --git a/components/script/dom/rtcpeerconnection.rs b/components/script/dom/rtcpeerconnection.rs index 2282846dc7a..37ae21a910d 100644 --- a/components/script/dom/rtcpeerconnection.rs +++ b/components/script/dom/rtcpeerconnection.rs @@ -8,7 +8,6 @@ use std::rc::Rc; use dom_struct::dom_struct; use js::rust::HandleObject; -use script_bindings::weakref::WeakReferenceable; use servo_media::ServoMedia; use servo_media::streams::MediaStreamType; use servo_media::streams::registry::MediaStreamId; @@ -791,8 +790,6 @@ impl RTCPeerConnectionMethods for RTCPeerConnection { } } -impl WeakReferenceable for RTCPeerConnection {} - impl Convert for SessionDescription { fn convert(self) -> RTCSessionDescriptionInit { let type_ = match self.type_ { diff --git a/components/script_bindings/codegen/Bindings.conf b/components/script_bindings/codegen/Bindings.conf index 535294a462e..93691f3bd5f 100644 --- a/components/script_bindings/codegen/Bindings.conf +++ b/components/script_bindings/codegen/Bindings.conf @@ -559,13 +559,10 @@ DOMInterfaces = { 'canGc': ['Error', 'Redirect', 'Clone', 'CreateFromJson', 'Text', 'Blob', 'FormData', 'Json', 'ArrayBuffer', 'Headers', 'Bytes'], }, -'RTCDataChannel': { - 'weakReferenceable': True, -}, - 'RTCPeerConnection': { 'inRealms': ['AddIceCandidate', 'CreateAnswer', 'CreateOffer', 'SetLocalDescription', 'SetRemoteDescription'], 'canGc': ['Close', 'AddIceCandidate', 'CreateAnswer', 'CreateOffer', 'SetLocalDescription', 'SetRemoteDescription'], + 'weakReferenceable': True, }, 'RTCRtpSender': {