diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-24 04:18:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 22:48:19 +0000 |
commit | ea875f0a51551914f85e56945a663ca0e749cc0e (patch) | |
tree | 744025510d9c1399abc843e7669e714dca37b98d /components/script/dom/selection.rs | |
parent | bb4932026cef55aefd95a5a627a944e1ad26c6f2 (diff) | |
download | servo-ea875f0a51551914f85e56945a663ca0e749cc0e.tar.gz servo-ea875f0a51551914f85e56945a663ca0e749cc0e.zip |
CanGc fixes from EventTarget::fire_event (#33985)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/selection.rs')
-rw-r--r-- | components/script/dom/selection.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<EventTarget>().fire_event(atom!("selectionchange")); + this.document.upcast::<EventTarget>().fire_event(atom!("selectionchange"), CanGc::note()); }), window.upcast(), ) |