You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notification</dfn> (a boolean), and an<dfndata-dfn-for=
330
-
"declarative push message parser result">app badge</dfn> (null or an integer).
328
+
[=/notification=]), an <dfndata-dfn-for="declarative push message parser result">app
329
+
badge</dfn> (null or an integer), and a<dfndata-dfn-for=
330
+
"declarative push message parser result">mutable</dfn> (a boolean).
331
331
</p>
332
332
<p>
333
333
The <dfn>declarative push message parser</dfn> given a [=/byte sequence=]
@@ -349,7 +349,7 @@ <h3>
349
349
</li>
350
350
<li>
351
351
<p>
352
-
If <var>message</var>["`web_push`"] [=map/does not exist=], then return failure.
352
+
If <var>message</var>["`web_push`"] does not [=map/exist=], then return failure.
353
353
</p>
354
354
</li>
355
355
<li>
@@ -359,7 +359,7 @@ <h3>
359
359
</li>
360
360
<li>
361
361
<p>
362
-
If <var>message</var>["`notification`"] [=map/does not exist=], then return
362
+
If <var>message</var>["`notification`"] does not [=map/exist=], then return
363
363
failure.
364
364
</p>
365
365
</li>
@@ -375,50 +375,93 @@ <h3>
375
375
</li>
376
376
<li>
377
377
<p>
378
-
If <var>notificationInput</var>["`title`"] [=map/does not exist=], then return
379
-
failure.
378
+
If <var>notificationInput</var>["`title`"] does not [=map/exist=] or is not a
379
+
string, then return failure.
380
380
</p>
381
381
</li>
382
382
<li>
383
383
<p>
384
-
If <var>notificationInput</var>["`title`"] is not a string, then return failure.
384
+
If <var>notificationInput</var>["`navigate`"] does not [=map/exist=] or is not a
385
+
string, then return failure.
385
386
</p>
386
387
</li>
388
+
<!-- We could also handle this the same way as any other NotificationOptions members as we still need to check that the final notification has a navigation URL regardless, but it seems better to illustrate early failures are possible. -->
387
389
<li>
388
390
<p>
389
-
Let <var>title</var> be <var>notificationInput</var>["`title`"].
391
+
Let <var>notificationTitle</var> be <var>notificationInput</var>["`title`"].
390
392
</p>
391
393
</li>
392
394
<li>
393
395
<p>
394
-
Let <var>mutable</var> be false.
396
+
Let <var>notificationOptions</var> be a {{NotificationOptions}} dictionary.
395
397
</p>
396
398
</li>
397
399
<li>
398
400
<p>
399
-
If <var>notificationInput</var>["`mutable`"] [=map/exists=] and
400
-
<var>notificationInput</var>["`mutable`"] is a boolean, then set <var>mutable</var>
401
-
to <var>notificationInput</var>["`mutable`"].
401
+
If <var>notificationInput</var>["`dir`"] [=map/exists=] and
402
+
<var>notificationInput</var>["`dir`"] is "`auto`", "`ltr`", or "`rtl`", then set
403
+
<var>notificationOptions</var>["{{NotificationOptions/dir}}"] to
404
+
<var>notificationInput</var>["`dir`"].
402
405
</p>
403
406
</li>
404
407
<li>
405
408
<p>
406
-
Let <var>jsNotificationInput</var> be the result of running <a>convert an Infra
407
-
value to a JSON-compatible JavaScript value</a> given <var>notificationInput</var>.
409
+
If <var>notificationInput</var>["`lang`"] [=map/exists=] and
410
+
<var>notificationInput</var>["`lang`"] is a string, then set
411
+
<var>notificationOptions</var>["{{NotificationOptions/lang}}"] to
412
+
<var>notificationInput</var>["`lang`"].
408
413
</p>
409
414
</li>
410
415
<li>
411
416
<p>
412
-
Let <var>notificationOptions</var> be the result of <adata-dfn-lt=
413
-
"converted to an IDL value">converting</a><var>jsNotificationInput</var> to the
414
-
dictionary type {{NotificationOptions}}. If this throws an exception, then return
415
-
failure.
417
+
If <var>notificationInput</var>["`body`"] [=map/exists=] and
418
+
<var>notificationInput</var>["`body`"] is a string, then set
419
+
<var>notificationOptions</var>["{{NotificationOptions/body}}"] to
420
+
<var>notificationInput</var>["`body`"].
421
+
</p>
422
+
</li>
423
+
<li>
424
+
<p>
425
+
Set <var>notificationOptions</var>["{{NotificationOptions/navigate}}"] to
0 commit comments