mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3d320fa96a
commit
5650fa2e79
26 changed files with 133 additions and 67 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue