- The passes privacy test steps given the argument |observer:PressureObserver| and
- its [=relevant global object=] |relevantGlobal|, are as follows:
-
-
- If |relevantGlobal| is a {{WorkerGlobalScope}} object:
-
-
+ To determine the owning global object for a {{DedicatedWorkerGlobalScope}} |workerGlobalScope|:
+
+
+ If |workerGlobalScope|'s [=WorkerGlobalScope/owner set=] consists of a single {{Document}} |document|,
+ then return |document|'s [=relevant global object=].
+
+
+ If |workerGlobalScope|'s [=WorkerGlobalScope/owner set=] consists of a single {{DedicatedWorkerGlobalScope}}
+ |parentWorkerGlobalScope|, then return |parentWorkerGlobalScope|'s [=owning global object=].
+
+
+ Return null.
+
+
+
+
+
+ The passes window privacy test steps given the argument |observer:PressureObserver| and
+ its [=relevant global object=] |relevantGlobal|, are as follows:
+
+
+ Assert: |relevantGlobal| is a {{Window}} object.
+
+
If |relevantGlobal|'s [=associated document=] is not [=Document/fully active=], return false.
-
+ If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with |origin|, return true.
+
+
+
+
+ If |relevantGlobal|'s [=browsing context=] is [=context is capturing|capturing=], return true.
+
+
+ Let |topLevelBC| be |relevantGlobal|'s [=browsing context=]'s [=top-level browsing context=].
+
+
+ If |topLevelBC| does not have [=top-level traversable/system focus=], return false.
+
+
+ Let |focusedDocument| be the |topLevelBC|'s
+
+ currently focused area's [=Node/node document=].
+
+
+ If |relevantGlobal|'s [=relevant settings object=]'s [=origin=] is [=same origin=] with
+ |focusedDocument|'s [=origin=], return true.
+
+
+ Otherwise, return false.
+
+
+
+
+ The passes privacy test steps given the argument |observer:PressureObserver| and
+ its [=relevant global object=] |relevantGlobal|, are as follows:
+
+
+ If |relevantGlobal| is a {{WorkerGlobalScope}} object:
+
+
+ If |relevantGlobal| is a {{DedicatedWorkerGlobalScope}} object:
+
+
+ Let |ownerGlobal| be |relevantGlobal|'s [=owning global object=].
+
+
+ Assert: |ownerGlobal| is not null.
+
+
+ Return the result of running [=passes window privacy test=] with |observer| and |ownerGlobal|.
+
+
+
+
+ If |relevantGlobal| is a {{SharedWorkerGlobalScope}} object:
+
+
+ [=list/For each=] |owner| in |relevantGlobal|'s [=WorkerGlobalScope/owner set=]:
+
+
+ Assert: |owner| is {{Document}}.
+
+
+ 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=].
+
+
+
+ Return false.
+
+
+
+
+
+
+
+ If |relevantGlobal| is not a {{Window}} object, return false.
+
+
+ Return the result of running [=passes window privacy test=] with |observer| and |relevantGlobal|.
+
+
+
+
+
The passes rate test steps given the argument |observer:PressureObserver|,
|source:PressureSource| and |timestamp:DOMHighResTimeStamp|, are as follows: