Multiple CanGc fixes in components/script/dom (#33924)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-20 21:37:15 +05:30 committed by GitHub
parent ee9e1fbbd6
commit 65c866285f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 77 additions and 37 deletions

View file

@ -302,7 +302,8 @@ unsafe extern "C" fn promise_rejection_tracker(
EventBubbles::DoesNotBubble,
EventCancelable::Cancelable,
root_promise,
reason.handle()
reason.handle(),
CanGc::note()
);
event.upcast::<Event>().fire(&target);
@ -419,7 +420,8 @@ pub fn notify_about_rejected_promises(global: &GlobalScope) {
EventBubbles::DoesNotBubble,
EventCancelable::Cancelable,
promise.clone(),
reason.handle()
reason.handle(),
CanGc::note()
);
let event_status = event.upcast::<Event>().fire(&target);