From 2ddb0612b922d512a05413a4d6f0a7e08d089448 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 26 Aug 2024 14:11:29 +0200 Subject: [PATCH] Editorial: export notification show steps These steps are needed by Declarative Web Push. Make these steps invoke "fetch steps" directly at the same time as no caller needs the distinction. --- notifications.bs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/notifications.bs b/notifications.bs index a9e28b7..96893b0 100644 --- a/notifications.bs +++ b/notifications.bs @@ -79,8 +79,8 @@ or in the future for a meeting that is about to start.

A notification has an associated renotify preference (a boolean). It is initially false. When true, indicates that the end user should be alerted after the -show steps have run with a new notification that has the same tag as -an existing notification. +notification show steps have run with a new notification that has the same +tag as an existing notification.

A notification has an associated silent preference (null or a boolean). It is @@ -466,10 +466,13 @@ interpreted as a language tag. Validity or well-formedness are not enforced. [[!

Showing a notification

-

The show steps for a given notification notification are: +

The notification show steps for a given notification +notification are:

    +
  1. Run the fetch steps for notification. +

  2. Wait for any fetches to complete and notification's image resource, icon resource, and badge resource to be set (if any), as well as the @@ -738,9 +741,7 @@ constructor steps are: "granted", then queue a task to fire an event named error on this, and abort these steps. -

  3. Run the fetch steps for notification. - -

  4. Run the show steps for notification. +

  5. Run the notification show steps for notification.

@@ -1091,9 +1092,7 @@ method steps are: DOM manipulation task source given global to reject promise with a {{TypeError}}, and abort these steps. -
  • Run the fetch steps for notification. - -

  • Run the show steps for notification. +

  • Run the notification show steps for notification.

  • Queue a global task on the DOM manipulation task source given global to resolve promise with undefined.