Skip to content

Commit

Permalink
Further fixes for camera and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Jan 14, 2024
1 parent de18043 commit 863f012
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -929,15 +929,15 @@ interface MediaSession {
Let <var>p</var> be a new promise.
</li>
<li>
Let <var>document<var> be [=this=]'s [=relevant global object=]'s
[=associated `Document`=].
Let <var>document</var> be [=this=]'s [=relevant global object=]'s
[=associated Document=].
</li>
<li>
<a>In parallel</a>, run the following substeps:
<ul>
<li>The user agent MAY wait to proceed, for instance if
<var>active</var> is <code>true</code> and <var>document<var>'s
[=Document/visibility state=] is not `"visible"`.</li>
<var>active</var> is <code>true</code> and <var>document</var>'s
[=Document/visibility state=] is not "visible".</li>
<li>If the user agent denies permission to change the microphone state
to <var>active</var>, reject <var>p</var> with a <a
exception>NotAllowedError</a> and abort these steps.</li>
Expand All @@ -964,11 +964,15 @@ interface MediaSession {
Let <var>p</var> be a new promise.
</li>
<li>
<a>Queue a task</a> to run the following substeps:
Let <var>document</var> be [=this=]'s [=relevant global object=]'s
[=associated Document=].
</li>
<li>
<a>In parallel</a>, run the following substeps::
<ul>
<li>The user agent MAY wait to proceed, for instance if
<var>active</var> is <code>true</code> and the relevant global object's
associated <code>Document</code> visiblity state is not "visible".</li>
<var>active</var> is <code>true</code> and <var>document</var>'s
[=Document/visibility state=] is not "visible".</li>
<li>If the user agent denies permission to change the camera state to
<var>active</var>, reject <var>p</var> with a <a
exception>NotAllowedError</a> and abort these steps.</li>
Expand Down

0 comments on commit 863f012

Please sign in to comment.