Skip to content

Commit

Permalink
Merge pull request #880 from jan-ivar/associated
Browse files Browse the repository at this point in the history
Reference relevant global object directly.
  • Loading branch information
jan-ivar authored May 5, 2022
2 parents f2bc5f7 + 3f82c08 commit 077f884
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ <h4>Life-cycle</h4>
device as soon as any live track sourced by the device
becomes both [= track/muted | unmuted =] and
[= track/enabled =] again, provided that track's
[=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=]
[=relevant global object=]'s [=associated `Document`=]
<a data-cite="!HTML/#gains-focus">has focus</a> at that time. If the
document does not <a data-cite="!HTML/#gains-focus">have focus</a> at that time,
the UA SHOULD instead queue a task to <a data-lt=muted>mute</a> the
Expand Down Expand Up @@ -2749,7 +2749,6 @@ <h3>{{MediaDevices}}</h3>
<p>Let <var>lastExposedDevices</var> be the result of
[=creating a list of device info objects=] for
{{MediaDevices/[[storedDeviceList]]}} and the
[=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=].</p>
</li>
<li>
Expand All @@ -2759,8 +2758,8 @@ <h3>{{MediaDevices}}</h3>
<li>
<p>Let <var>newExposedDevices</var> be the result of
[=creating a list of device info objects=] for
<var>deviceList</var> and the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=].</p>
<var>deviceList</var> and the [=relevant global object=]'s
[=associated `Document`=].</p>
</li>
<li>
<p>If the {{MediaDeviceInfo}} objects in <var>newExposedDevices</var>
Expand Down Expand Up @@ -2844,8 +2843,8 @@ <h2>Methods</h2>
<ol>
<li>

<p>Let <var>document</var> be the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=].</p>
<p>Let <var>document</var> be the [=relevant global object=]'s
[=associated `Document`=].</p>
</li>
<li>
<p>The [=User Agent=] MUST wait to proceed to the next step until
Expand Down Expand Up @@ -2967,7 +2966,8 @@ <h2>Methods</h2>
information across browsing sessions and origins via the availability
of media capture devices, it adds to the
fingerprinting surface exposed by the [=User Agent=].</p>
<p class="fingerprint">As long as the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] did not capture, this method will
<p class="fingerprint">As long as the [=relevant global object=]'s
[=associated `Document`=] did not capture, this method will
limit exposure to two bits of information: whether there is a camera
and whether there is a microphone. A [=User Agent=] may mitigate this by
pretending the system has a camera and a microphone, for instance until the
Expand Down Expand Up @@ -3051,7 +3051,8 @@ <h2>Device information exposure</h2>
[=device information can be exposed=] is <code>true</code>.
</li>
<li>
<p>If the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] is [=Document/fully active=] and
<p>If the [=relevant global object=]'s [=associated `Document`=] is
[=Document/fully active=] and
<a data-cite="!HTML/#gains-focus">has focus</a>, return
<code>true</code>.</p>
</li>
Expand Down Expand Up @@ -3080,9 +3081,8 @@ <h2>Device information exposure</h2>
<ol>
<li>
<p>If any of the local devices of kind "videoinput" are attached to a live
{{MediaStreamTrack}} in the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=], return
<code>true</code>.</p>
{{MediaStreamTrack}} in the [=relevant global object=]'s
[=associated `Document`=], return <code>true</code>.</p>
</li>
<li>
<p>Return {{MediaDevices/[[canExposeCameraInfo]]}}.</p>
Expand All @@ -3094,9 +3094,8 @@ <h2>Device information exposure</h2>
<ol>
<li>
<p>If any of the local devices of kind "audioinput" are attached to a live
{{MediaStreamTrack}} in the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=], return
<code>true</code>.</p>
{{MediaStreamTrack}} in the [=relevant global object=]'s
[=associated `Document`=], return <code>true</code>.</p>
</li>
<li>
<p>Return {{MediaDevices/[[canExposeMicrophoneInfo]]}}.</p>
Expand Down Expand Up @@ -3502,8 +3501,8 @@ <h2>Methods</h2>
succeed.</p>
</li>
<li>
<p>Let <var>document</var> be the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=].</p>
<p>Let <var>document</var> be the [=relevant global object=]'s
[=associated `Document`=].</p>
</li>
<li>
<p>If <var>document</var> is NOT
Expand Down Expand Up @@ -3531,8 +3530,7 @@ <h2>Methods</h2>
<ol>
<li>
<p>The [=User Agent=] MUST wait to proceed to the next step until
the [=relevant settings object=]'s
[=relevant global object=]'s [=associated `Document`=] is
the [=relevant global object=]'s [=associated `Document`=] is
[=Document/fully active=] and
<a data-cite="!HTML/#gains-focus">has focus.</a></p>
</li>
Expand Down

0 comments on commit 077f884

Please sign in to comment.