diff options
author | Josh Matthews <josh@joshmatthews.net> | 2025-03-03 07:17:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 12:17:25 +0000 |
commit | 5650fa2e79e03b83667c204f4ea0cf5ce6722615 (patch) | |
tree | 8362e3db4f9543b7df47955b1f2cd6602128e3d9 /components/script/dom/notification.rs | |
parent | 3d320fa96ae2ca95a720c454c47ee7827864c5af (diff) | |
download | servo-5650fa2e79e03b83667c204f4ea0cf5ce6722615.tar.gz servo-5650fa2e79e03b83667c204f4ea0cf5ce6722615.zip |
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/notification.rs')
-rw-r--r-- | components/script/dom/notification.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/notification.rs b/components/script/dom/notification.rs index 471c5a82e84..8661e5f9add 100644 --- a/components/script/dom/notification.rs +++ b/components/script/dom/notification.rs @@ -291,7 +291,7 @@ impl NotificationMethods<crate::DomTypeHolder> for Notification { // Step 3.2.1: If deprecatedCallback is given, // then invoke deprecatedCallback with « permissionState » and "report". if let Some(callback) = global.remove_notification_permission_request_callback(uuid_) { - let _ = callback.Call__(notification_permission, ExceptionHandling::Report); + let _ = callback.Call__(notification_permission, ExceptionHandling::Report, CanGc::note()); } // Step 3.2.2: Resolve promise with permissionState. |