mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ee9e1fbbd6
commit
65c866285f
26 changed files with 77 additions and 37 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue