Skip to content

Commit

Permalink
Fix comments from Raphael
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchris committed Oct 13, 2023
1 parent aac2c45 commit bf532c0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -958,18 +958,14 @@ <h3>Supporting algorithms</h3>
<li>
If |relevantGlobal| is a {{WorkerGlobalScope}} object:
<ol>
<li>
If |relevantGlobal|'s relevant worker is not a <a href="https://html.spec.whatwg.org/multipage/workers.html#active-needed-worker">
active needed worker</a>, return false.
</li>
<li>
If |relevantGlobal| is a {{DedicatedWorkerGlobalScope}} object:
<ol>
<li>
Let |ownerGlobal| be |relevantGlobal|'s [=owning global object=].
</li>
<li>
Assert: |ownerGlobal| is not null.
If |ownerGlobal| is null, return false.
</li>
<li>
Return the result of running [=passes window privacy test=] with |observer| and |ownerGlobal|.
Expand Down Expand Up @@ -999,10 +995,15 @@ <h3>Supporting algorithms</h3>
</ol>
</li>
<li>
If |relevantGlobal| is not a {{Window}} object, return false.
If |relevantGlobal| is a {{Window}} object:
<ol>
<li>
Return the result of running [=passes window privacy test=] with |observer| and |relevantGlobal|.
</li>
</ol>
</li>
<li>
Return the result of running [=passes window privacy test=] with |observer| and |relevantGlobal|.
Return false.
</li>
</ol>
<aside class="note">
Expand Down Expand Up @@ -1454,6 +1455,11 @@ <h4>Same-origin restriction</h4>
The feature can be extended to third-party contexts such as iframes only by a
<a href="https://www.w3.org/TR/permissions-policy/#permissions-policy-declared-policy">declared policy</a>.
</p>
<p>
Shared workers can be shared across documents, such as top level document and those associated iframes. If one
of the documents in the [=WorkerGlobalScope/owner set=] passes the above data delivery requirements, the shared worker will
qualify for data delivery. This means that the embedded iframe is able to pass along the data to the embedding document.
</p>
</section>
</p>
</section>
Expand Down

0 comments on commit bf532c0

Please sign in to comment.