diff options
Diffstat (limited to 'components/script/dom/rtcrtptransceiver.rs')
-rw-r--r-- | components/script/dom/rtcrtptransceiver.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/rtcrtptransceiver.rs b/components/script/dom/rtcrtptransceiver.rs index aa70913a3d5..59aa492a7e1 100644 --- a/components/script/dom/rtcrtptransceiver.rs +++ b/components/script/dom/rtcrtptransceiver.rs @@ -23,8 +23,12 @@ pub(crate) struct RTCRtpTransceiver { } impl RTCRtpTransceiver { - fn new_inherited(global: &GlobalScope, direction: RTCRtpTransceiverDirection) -> Self { - let sender = RTCRtpSender::new(global, CanGc::note()); + fn new_inherited( + global: &GlobalScope, + direction: RTCRtpTransceiverDirection, + can_gc: CanGc, + ) -> Self { + let sender = RTCRtpSender::new(global, can_gc); Self { reflector_: Reflector::new(), direction: Cell::new(direction), @@ -38,7 +42,7 @@ impl RTCRtpTransceiver { can_gc: CanGc, ) -> DomRoot<Self> { reflect_dom_object( - Box::new(Self::new_inherited(global, direction)), + Box::new(Self::new_inherited(global, direction, can_gc)), global, can_gc, ) |