mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
CanGc fixes and checks in multiple files (#33836)
* CanGc fixes and checks in multiple files Signed-off-by: L Ashwin B <lashwinib@gmail.com> * CanGc fixes in storageevent.rs Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
2f1862aaf5
commit
1e39787573
9 changed files with 74 additions and 59 deletions
|
@ -749,7 +749,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
}
|
||||
|
||||
/// <https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-close>
|
||||
fn Close(&self) {
|
||||
fn Close(&self, can_gc: CanGc) {
|
||||
// Step 1
|
||||
if self.closed.get() {
|
||||
return;
|
||||
|
@ -765,7 +765,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
|
|||
|
||||
// Step 6
|
||||
for (_, val) in self.data_channels.borrow().iter() {
|
||||
val.on_state_change(DataChannelState::Closed, CanGc::note());
|
||||
val.on_state_change(DataChannelState::Closed, can_gc);
|
||||
}
|
||||
|
||||
// Step 7-10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue