Skip to content

Commit f67dfd8

Browse files
committed
Queue a task before rejecting the promise in the update capture state algorithm
1 parent 081423d commit f67dfd8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,8 @@ interface MediaSession {
10081008
and <code>true</code> otherwise.
10091009
</li>
10101010
<li>
1011-
If <var>active</var> is <var>currentlyActive</var>, resolve
1011+
If <var>active</var> is <var>currentlyActive</var>, <a>queue a task</a>
1012+
using the [=user interaction task source=] to resolve
10121013
<var>p</var> with <code>undefined</code> and abort these steps.
10131014
</li>
10141015
<li>
@@ -1017,6 +1018,7 @@ interface MediaSession {
10171018
</li>
10181019
<li>
10191020
If the user agent denies the request to update the capture state,
1021+
<a>queue a task</a> using the [=user interaction task source=] to
10201022
reject <var>p</var> with a <a exception>NotAllowedError</a> and
10211023
abort these steps.
10221024
</li>
@@ -1042,7 +1044,7 @@ interface MediaSession {
10421044
<li>
10431045
For each {{MediaStreamTrack}} whose source is of type
10441046
<var>captureKind</var>,
1045-
<a>queue a task</a>using the [=user interaction task source=]
1047+
<a>queue a task</a> using the [=user interaction task source=]
10461048
to [$set a track's muted state$] to <var>newMutedState</var>.
10471049
</li>
10481050
</ol>

0 commit comments

Comments
 (0)