Skip to content

Commit 2ddb061

Browse files
committed
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.
1 parent 37649c3 commit 2ddb061

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

notifications.bs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ or in the future for a meeting that is about to start.
7979
<p>A <a for=/>notification</a> has an associated
8080
<dfn for=notification id=renotify-preference-flag>renotify preference</dfn> (a boolean). It is
8181
initially false. When true, indicates that the end user should be alerted after the
82-
<a>show steps</a> have run with a new notification that has the same <a for=notification>tag</a> as
83-
an existing notification.
82+
<a for=/>notification show steps</a> have run with a new notification that has the same
83+
<a for=notification>tag</a> as an existing notification.
8484

8585
<p>A <a for=/>notification</a> has an associated
8686
<dfn for=notification id=silent-preference-flag>silent preference</dfn> (null or a boolean). It is
@@ -466,10 +466,13 @@ interpreted as a language tag. Validity or well-formedness are not enforced. [[!
466466
<h3 id=showing-a-notification>Showing a notification</h3>
467467

468468
<div algorithm>
469-
<p>The <dfn>show steps</dfn> for a given <a for=/>notification</a> <var>notification</var> are:
469+
<p>The <dfn export>notification show steps</dfn> for a given <a for=/>notification</a>
470+
<var>notification</var> are:
470471
<!-- These steps are invoked from "in parallel" steps -->
471472

472473
<ol>
474+
<li><p>Run the <a>fetch steps</a> for <var>notification</var>.
475+
473476
<li><p>Wait for any <a for=/ lt=fetch>fetches</a> to complete and <var>notification</var>'s
474477
<a for=notification>image resource</a>, <a for=notification>icon resource</a>, and
475478
<a for=notification>badge resource</a> to be set (if any), as well as the
@@ -738,9 +741,7 @@ constructor steps are:
738741
"<code>granted</code>", then <a>queue a task</a> to <a>fire an event</a> named
739742
<code>error</code> on <a>this</a>, and abort these steps.
740743

741-
<li><p>Run the <a>fetch steps</a> for <var>notification</var>.
742-
743-
<li><p>Run the <a>show steps</a> for <var>notification</var>.
744+
<li><p>Run the <a for=/>notification show steps</a> for <var>notification</var>.
744745
</ol>
745746
</ol>
746747
</div>
@@ -1091,9 +1092,7 @@ method steps are:
10911092
<a>DOM manipulation task source</a> given <var>global</var> to <a for=/>reject</a>
10921093
<var>promise</var> with a {{TypeError}}, and abort these steps.
10931094

1094-
<li><p>Run the <a>fetch steps</a> for <var>notification</var>.
1095-
1096-
<li><p>Run the <a>show steps</a> for <var>notification</var>.
1095+
<li><p>Run the <a for=/>notification show steps</a> for <var>notification</var>.
10971096

10981097
<li><p><a>Queue a global task</a> on the <a>DOM manipulation task source</a> given
10991098
<var>global</var> to <a for=/>resolve</a> <var>promise</var> with undefined.

0 commit comments

Comments
 (0)