Skip to content

Commit

Permalink
Editorial fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jun 19, 2020
1 parent 176f55f commit 2ff8d3c
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -79986,8 +79986,8 @@ interface <dfn>BarProp</dfn> {

<dt>"<dfn><code data-x="coop-same-origin">same-origin</code></dfn>"</dt>
<dd><p>This behaves the same as "<code
data-x="coop-same-origin-allow-popups">same-origin-allow-popups</code>", with the addition any
<span>auxiliary browsing context</span> created needs to contain <span>same origin</span>
data-x="coop-same-origin-allow-popups">same-origin-allow-popups</code>", with the addition that
any <span>auxiliary browsing context</span> created needs to contain <span>same origin</span>
documents that also have the same <span>cross-origin opener policy</span> or it will appear
closed to the opener.</p></dd>

Expand Down Expand Up @@ -80026,7 +80026,8 @@ interface <dfn>BarProp</dfn> {
<li><p>Return false.</p></li>
</ol>

<h4>Cross-Origin-Opener-Policy header</h4>
<h4>The `<code data-x="http-cross-origin-opener-policy">Cross-Origin-Opener-Policy</code>`
header</h4>

<p>A <code>Document</code>'s <span data-x="concept-document-coop">cross-origin opener
policy</span> is derived from the `<code
Expand Down Expand Up @@ -80091,7 +80092,7 @@ interface <dfn>BarProp</dfn> {
<p>To <dfn data-x="check-browsing-context-group-switch-response">check if a response requires a
browsing context group switch</dfn>, given a <span>browsing context</span>
<var>browsingContext</var>, an <span>origin</span> <var>responseOrigin</var> and a
<span>cross-origin opener policy</span> <var>responseCOOP</var>, run the followign steps:</p>
<span>cross-origin opener policy</span> <var>responseCOOP</var>:</p>

<ol>
<li><p>Let <var>activeDocumentNavigationOrigin</var> be <var>browsingContext</var>'s <span>active
Expand Down Expand Up @@ -80186,7 +80187,8 @@ interface <dfn>BarProp</dfn> {
href="https://github.com/whatwg/html/issues/5350">whatwg/html issue #5350</a> for defining
<span>browsing session</span>. It is roughly analogous to a <span>top-level browsing
context</span> except that it cannot be replaced due to a `<code
data-x="">Cross-Origin-Opener-Policy</code>` header or navigation.</p>
data-x="http-cross-origin-opener-policy">Cross-Origin-Opener-Policy</code>` header or
navigation.</p>

<p>A <span>top-level browsing context</span> has an associated <dfn data-export="" data-x="tlbc
browsing session" data-dfn-for="top-level browsing context">browsing session</dfn> which is a
Expand Down Expand Up @@ -82000,7 +82002,8 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
data-x="concept-request-url">url</span>, <var>finalSandboxFlags</var>,
<var>incumbentNavigationOrigin</var>, and <var>activeDocumentNavigationOrigin</var>.</p></li>

<li><p>Let <var>responseCOOP</var> be "<code data-x="">unsafe-none</code>".</p></li>
<li><p>Let <var>responseCOOP</var> be "<code
data-x="coop-unsafe-none">unsafe-none</code>".</p></li>

<li><p>Let <var>browsingContextSwitchNeeded</var> be false.</p></li>

Expand Down Expand Up @@ -82137,7 +82140,8 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface

<li><p>Let <var>finalSandboxFlags</var> be an empty <span>sandboxing flag set</span>.</p></li>

<li><p>Let <var>responseCOOP</var> be "<code data-x="">unsafe-none</code>".</p></li>
<li><p>Let <var>responseCOOP</var> be "<code
data-x="coop-unsafe-none">unsafe-none</code>".</p></li>

<li>
<p>While true:</p>
Expand Down Expand Up @@ -82234,7 +82238,7 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
<var>incumbentNavigationOrigin</var>, and <var>activeDocumentNavigationOrigin</var>.</p></li>

<li>
<p>If <var>browsingContext</var> is a <span>top-level browsing context</span>, then: </p>
<p>If <var>browsingContext</var> is a <span>top-level browsing context</span>, then:</p>

<ol>
<li><p>Set <var>responseCOOP</var> to the result of <span data-x="obtain-coop">obtaining a
Expand All @@ -82243,17 +82247,17 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface

<li>
<p>If <var>sandboxFlags</var> is not empty and <var>responseCOOP</var> is not "<code
data-x="coop-unsafe-none">unsafe-none</code>", then set <var>response</var> to an
appropriate <span>network error</span> and return.</p>
data-x="coop-unsafe-none">unsafe-none</code>", then set <var>response</var> to an
appropriate <span>network error</span> and <span>break</span>.</p>

<p class="note">This results in a network error as one cannot simultaneously provide a
clean slate to a response using cross-origin opener policy and sandbox the result of
<p class="note">This results in a network error as one cannot simultaneously provide a
clean slate to a response using cross-origin opener policy and sandbox the result of
navigating to that response.</p>
</li>

<li><p>Let <var>responseRequiresBrowsingContexGroupSwitch</var> be the result of <span
data-x="check-browsing-context-group-switch-response">checking if the response requires a
browsing context group switch</span> given <var>browsingContext</var>,
data-x="check-browsing-context-group-switch-response">checking if the response requires a
browsing context group switch</span> given <var>browsingContext</var>,
<var>responseOrigin</var>, and <var>responseCOOP</var>.</p></li>

<li><p>If <var>responseRequiresBrowsingContextGroupSwitch</var> is true, set
Expand All @@ -82272,8 +82276,6 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
the web platform that cares for redirects to <code data-x="mailto protocol">mailto:</code>
URLs and such.</p>
</li>

<li><p>If <var>response</var> is a <span>network error</span>, then <span>break</span>.
</ol>
</li>
</ol>
Expand Down

0 comments on commit 2ff8d3c

Please sign in to comment.