diff --git a/notifications.bs b/notifications.bs index 801a070..a85a2b2 100644 --- a/notifications.bs +++ b/notifications.bs @@ -144,12 +144,13 @@ support these features might ignore them.
Users may activate actions, as alternatives to activating the notification itself. The -maximum number of actions supported is an implementation-defined integer of zero -or more, within the constraints of the notification platform. +
Users may activate actions, as alternatives to activating the notification itself. -
Since display of actions is platform-dependent, developers are encouraged to make sure -that any action an end user can invoke from a notification is also available within the web +
The maximum number of supported actions are limited to 2 on all platforms, to prevent +fingerprinting based on the actual maximum number of the underlying system. + +
Since the support of actions is platform-dependent, developers are encouraged to make +sure that any action an end user can invoke from a notification is also available within the web application.
Some platforms might modify an @@ -258,8 +259,10 @@ important information through, e.g., loss of color or clipped corners.
Set notification's actions to « ».
For each entry in options["{{NotificationOptions/actions}}"], up to the - maximum number of actions supported (skip any excess entries): +
Let |actions| be a [=list=] of initial maximum two items from + |options|["{{NotificationOptions/actions}}"]. + +
[=list/For each=] |entry| of |actions|:
Let action be a new notification action. @@ -632,8 +635,6 @@ interface Notification : EventTarget { static readonly attribute NotificationPermission permission; [Exposed=Window] static Promise<NotificationPermission> requestPermission(optional NotificationPermissionCallback deprecatedCallback); - static readonly attribute unsigned long maxActions; - attribute EventHandler onclick; attribute EventHandler onshow; attribute EventHandler onerror; @@ -809,9 +810,6 @@ method steps are: makes sense. Specifications for other APIs should not use this pattern and instead employ one of the many more suitable alternatives. -
The static maxActions
getter steps are to
-return the maximum number of actions supported.
-
The following are the event handlers (and their corresponding