From 3f82c08c0b2c69cc1e8231eddf232c474eb4db9f Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Tue, 3 May 2022 18:00:12 -0400 Subject: [PATCH] Reference relevant global object directly. --- getusermedia.html | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/getusermedia.html b/getusermedia.html index a8dfa7f0..c9438eda 100644 --- a/getusermedia.html +++ b/getusermedia.html @@ -781,7 +781,7 @@

Life-cycle

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`=] has focus at that time. If the document does not have focus at that time, the UA SHOULD instead queue a task to mute the @@ -2740,7 +2740,6 @@

{{MediaDevices}}

Let lastExposedDevices 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`=].

  • @@ -2750,8 +2749,8 @@

    {{MediaDevices}}

  • Let newExposedDevices be the result of [=creating a list of device info objects=] for - deviceList and the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=].

    + deviceList and the [=relevant global object=]'s + [=associated `Document`=].

  • If the {{MediaDeviceInfo}} objects in newExposedDevices @@ -2835,8 +2834,8 @@

    Methods

    1. -

      Let document be the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=].

      +

      Let document be the [=relevant global object=]'s + [=associated `Document`=].

    2. The [=User Agent=] MUST wait to proceed to the next step until @@ -2958,7 +2957,8 @@

      Methods

      information across browsing sessions and origins via the availability of media capture devices, it adds to the fingerprinting surface exposed by the [=User Agent=].

      -

      As long as the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] did not capture, this method will +

      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 @@ -3042,7 +3042,8 @@

      Device information exposure

      [=device information can be exposed=] is true.
    3. -

      If the [=relevant settings object=]'s [=relevant global object=]'s [=associated `Document`=] is [=Document/fully active=] and +

      If the [=relevant global object=]'s [=associated `Document`=] is + [=Document/fully active=] and has focus, return true.

    4. @@ -3071,9 +3072,8 @@

      Device information exposure

      1. 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 - true.

        + {{MediaStreamTrack}} in the [=relevant global object=]'s + [=associated `Document`=], return true.

      2. Return {{MediaDevices/[[canExposeCameraInfo]]}}.

        @@ -3085,9 +3085,8 @@

        Device information exposure

        1. 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 - true.

          + {{MediaStreamTrack}} in the [=relevant global object=]'s + [=associated `Document`=], return true.

        2. Return {{MediaDevices/[[canExposeMicrophoneInfo]]}}.

          @@ -3493,8 +3492,8 @@

          Methods

          succeed.

        3. -

          Let document be the [=relevant settings object=]'s - [=relevant global object=]'s [=associated `Document`=].

          +

          Let document be the [=relevant global object=]'s + [=associated `Document`=].

        4. If document is NOT @@ -3522,8 +3521,7 @@

          Methods

          1. 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 has focus.