diff --git a/index.html b/index.html index a9d9d24..9d243e2 100644 --- a/index.html +++ b/index.html @@ -889,67 +889,133 @@

Supporting algorithms

- The passes privacy test steps given the argument |observer:PressureObserver| and - its [=relevant global object=] |relevantGlobal|, are as follows: -
    -
  1. - If |relevantGlobal| is a {{WorkerGlobalScope}} object: -
      -
    1. - If |relevantGlobal|'s relevant worker is not a - active needed worker, return false. -
    2. -
    3. - Otherwise, return true. -
    4. -
    -
  2. -
  3. - If |relevantGlobal| is a {{Window}} object: -
      -
    1. +

      + To determine the owning global object for a {{DedicatedWorkerGlobalScope}} |workerGlobalScope|: +

        +
      1. + If |workerGlobalScope|'s [=WorkerGlobalScope/owner set=] consists of a single {{Document}} |document|, + then return |document|'s [=relevant global object=]. +
      2. +
      3. + If |workerGlobalScope|'s [=WorkerGlobalScope/owner set=] consists of a single {{DedicatedWorkerGlobalScope}} + |parentWorkerGlobalScope|, then return |parentWorkerGlobalScope|'s [=owning global object=]. +
      4. +
      5. + Return null. +
      6. +
      + +

      +

      + The passes window privacy test steps given the argument |observer:PressureObserver| and + its [=relevant global object=] |relevantGlobal|, are as follows: +

        +
      1. + Assert: |relevantGlobal| is a {{Window}} object. +
      2. +
      3. If |relevantGlobal|'s [=associated document=] is not [=Document/fully active=], return false. -
      4. -
      5. - [=list/For each=] |origin| in - - initiators of active Picture-in-Picture sessions: -
          -
        1. - If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with |origin|, return true. -
        2. -
        -
      6. -
      7. - If |relevantGlobal|'s [=browsing context=] is [=context is capturing|capturing=], return true. -
      8. -
      9. - Let |topLevelBC| be |relevantGlobal|'s [=browsing context=]'s [=top-level browsing context=]. -
      10. -
      11. - If |topLevelBC| does not have [=top-level traversable/system focus=], return false. -
      12. -
      13. - Let |focusedDocument| be the |topLevelBC|'s - - currently focused area's [=Node/node document=]. -
      14. -
      15. - If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with - |focusedDocument|'s [=origin=], return true. -
      16. -
      17. - Otherwise, return false. -
      18. -
      -
    2. -
    - +
  4. +
  5. + [=list/For each=] |origin| in + + initiators of active Picture-in-Picture sessions: +
      +
    1. + If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with |origin|, return true. +
    2. +
    +
  6. +
  7. + If |relevantGlobal|'s [=browsing context=] is [=context is capturing|capturing=], return true. +
  8. +
  9. + Let |topLevelBC| be |relevantGlobal|'s [=browsing context=]'s [=top-level browsing context=]. +
  10. +
  11. + If |topLevelBC| does not have [=top-level traversable/system focus=], return false. +
  12. +
  13. + Let |focusedDocument| be the |topLevelBC|'s + + currently focused area's [=Node/node document=]. +
  14. +
  15. + If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with + |focusedDocument|'s [=origin=], return true. +
  16. +
  17. + Otherwise, return false. +
  18. +
+

+

+ The passes privacy test steps given the argument |observer:PressureObserver| and + its [=relevant global object=] |relevantGlobal|, are as follows: +

    +
  1. + If |relevantGlobal| is a {{WorkerGlobalScope}} object: +
      +
    1. + If |relevantGlobal|'s relevant worker is not a + active needed worker, return false. +
    2. +
    3. + If |relevantGlobal| is a {{DedicatedWorkerGlobalScope}} object: +
        +
      1. + Let |ownerGlobal| be |relevantGlobal|'s [=owning global object=]. +
      2. +
      3. + Assert: |ownerGlobal| is not null. +
      4. +
      5. + Return the result of running [=passes window privacy test=] with |observer| and |ownerGlobal|. +
      6. +
      +
    4. +
    5. + If |relevantGlobal| is a {{SharedWorkerGlobalScope}} object: +
        +
      1. + [=list/For each=] |owner| in |relevantGlobal|'s [=WorkerGlobalScope/owner set=]: +
          +
        1. + Assert: |owner| is {{Document}}. +
        2. +
        3. + If the result of running [=passes window privacy test=] with |observer| and |owner|'s + [=relevant global object=] is true, return true, or else [=iteration/continue=]. +
        4. +
        +
      2. + Return false. +
      3. + +
      +
    6. +
    +
  2. +
  3. + If |relevantGlobal| is not a {{Window}} object, return false. +
  4. +
  5. + Return the result of running [=passes window privacy test=] with |observer| and |relevantGlobal|. +
  6. +
+ + +

The passes rate test steps given the argument |observer:PressureObserver|, |source:PressureSource| and |timestamp:DOMHighResTimeStamp|, are as follows: