mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Some CanGc fixes in components/script/dom (#33895)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
e33bae6d0a
commit
6b87ecc291
5 changed files with 23 additions and 15 deletions
|
@ -290,7 +290,14 @@ impl RTCPeerConnection {
|
|||
return;
|
||||
}
|
||||
let track = MediaStreamTrack::new(&self.global(), id, ty);
|
||||
let event = RTCTrackEvent::new(&self.global(), atom!("track"), false, false, &track);
|
||||
let event = RTCTrackEvent::new(
|
||||
&self.global(),
|
||||
atom!("track"),
|
||||
false,
|
||||
false,
|
||||
&track,
|
||||
CanGc::note(),
|
||||
);
|
||||
event.upcast::<Event>().fire(self.upcast());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue