Skip to content

Commit 3f9fdde

Browse files
Default silent to platform convention
Tests: WebKit/WebKit#13912. Closes #193.
1 parent 8b4002d commit 3f9fdde

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

notifications.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ initially false. When true, indicates that the end user should be alerted after
8383
an existing notification.
8484

8585
<p>A <a>notification</a> has an associated
86-
<dfn for=notification id=silent-preference-flag>silent preference</dfn> boolean, which is initially
87-
false. When true, indicates that no sounds or vibrations should be made.
86+
<dfn for=notification id=silent-preference-flag>silent preference</dfn> boolean or null, which is
87+
initially null. When true, indicates that no sounds or vibrations should be made. When null,
88+
indicates that producing sounds or vibrations should be left to platform conventions.
8889

8990
<p>A <a>notification</a> has an associated
9091
<dfn for=notification id=require-interaction-preference-flag>require interaction preference</dfn>
@@ -616,7 +617,7 @@ interface Notification : EventTarget {
616617
[SameObject] readonly attribute FrozenArray&lt;unsigned long> vibrate;
617618
readonly attribute EpochTimeStamp timestamp;
618619
readonly attribute boolean renotify;
619-
readonly attribute boolean silent;
620+
readonly attribute boolean? silent;
620621
readonly attribute boolean requireInteraction;
621622
[SameObject] readonly attribute any data;
622623
[SameObject] readonly attribute FrozenArray&lt;NotificationAction> actions;
@@ -635,7 +636,7 @@ dictionary NotificationOptions {
635636
VibratePattern vibrate;
636637
EpochTimeStamp timestamp;
637638
boolean renotify = false;
638-
boolean silent = false;
639+
boolean? silent = null;
639640
boolean requireInteraction = false;
640641
any data = null;
641642
sequence&lt;NotificationAction> actions = [];

0 commit comments

Comments
 (0)