Skip to content

Commit 6610380

Browse files
authored
Editorial: add "has showNotification() been successfully invoked"
This is a concept needed for Declarative Web Push: see w3c/push-api#360 for context.
1 parent 26ccefb commit 6610380

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

notifications.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,12 @@ partial interface ServiceWorkerGlobalScope {
11291129
};
11301130
</pre>
11311131

1132+
<p>A <a for=/>service worker registration</a> has an associated
1133+
<dfn export for="service worker registration">has <code>showNotification()</code> been successfully invoked</dfn>
1134+
(a <a for=/>boolean</a>), which is initially false.
1135+
1136+
<p class=note>This is infrastructure for the <cite>Push API</cite> standard. [[PUSH-API]]
1137+
11321138
<div algorithm>
11331139
<p>The
11341140
<dfn method for=ServiceWorkerRegistration><code>showNotification(<var>title</var>, <var>options</var>)</code></dfn>
@@ -1163,6 +1169,10 @@ method steps are:
11631169

11641170
<li><p>Run the <a for=/>notification show steps</a> for <var>notification</var>.
11651171

1172+
<li><p>Set <var>notification</var>'s <a for=notification>service worker registration</a>'s
1173+
<a for="service worker registration">has <code>showNotification()</code> been successfully invoked</a>
1174+
to true.
1175+
11661176
<li><p><a>Queue a global task</a> on the <a>DOM manipulation task source</a> given
11671177
<var>global</var> to <a for=/>resolve</a> <var>promise</var> with undefined.
11681178
</ol>

0 commit comments

Comments
 (0)