CanGc fixes in components/script/dom (#33880)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-17 18:19:00 +05:30 committed by GitHub
parent 72ff89620b
commit cd7b66be58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 59 additions and 33 deletions

View file

@ -297,7 +297,8 @@ impl XRSession {
promise.resolve_native(&());
}
// Step 7
let event = XRSessionEvent::new(&self.global(), atom!("end"), false, false, self);
let event =
XRSessionEvent::new(&self.global(), atom!("end"), false, false, self, can_gc);
event.upcast::<Event>().fire(self.upcast());
},
XREvent::Select(input, kind, ty, frame) => {
@ -360,6 +361,7 @@ impl XRSession {
false,
false,
self,
can_gc,
);
event.upcast::<Event>().fire(self.upcast());
// The page may be visible again, dirty the layers
@ -607,6 +609,7 @@ impl XRSession {
false,
false,
self,
CanGc::note(),
);
event.upcast::<Event>().fire(self.upcast());
}