From ea875f0a51551914f85e56945a663ca0e749cc0e Mon Sep 17 00:00:00 2001 From: tanishka <109246904+taniishkaaa@users.noreply.github.com> Date: Thu, 24 Oct 2024 04:18:19 +0530 Subject: CanGc fixes from EventTarget::fire_event (#33985) Signed-off-by: taniishkaaa --- components/script/dom/selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/selection.rs') diff --git a/components/script/dom/selection.rs b/components/script/dom/selection.rs index 63ec919a4b3..fbe5047a12e 100644 --- a/components/script/dom/selection.rs +++ b/components/script/dom/selection.rs @@ -96,7 +96,7 @@ impl Selection { task!(selectionchange_task_steps: move || { let this = this.root(); this.task_queued.set(false); - this.document.upcast::().fire_event(atom!("selectionchange")); + this.document.upcast::().fire_event(atom!("selectionchange"), CanGc::note()); }), window.upcast(), ) -- cgit v1.2.3