Skip to content

Commit

Permalink
cleanup code a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jun 5, 2020
1 parent 334e0c3 commit a4503a8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2140,22 +2140,15 @@ given <var>request</var>, run these steps:
<a for="environment">top-level creation URL</a>'s <a for=url>origin</a>.

<p class=note>This happens for top-level navigations only.

<li><p>Assert: <var>topLevelOrigin</var> is an <a for=/>origin</a>.
</ol>

<li>
<p>If <var>topLevelOrigin</var> is null and <var>request</var>'s <a for=request>client</a> is
non-null, then:

<ol>
<li><p>Set <var>topLevelOrigin</var> to <var>request</var>'s <a for=request>client</a>'s
<a for="environment">top-level origin</a>.
<li><p>Otherwise, if <var>request</var>'s <a for=request>client</a> is non-null, set
<var>topLevelOrigin</var> to <var>request</var>'s <a for=request>client</a>'s
<a for="environment">top-level origin</a>.

<li><p>Assert: <var>topLevelOrigin</var> is an <a for=/>origin</a>.
</ol>
<li><p>Otherwise, return null.

<li><p>If <var>topLevelOrigin</var> is null, then return null.
<li><p>Assert: <var>topLevelOrigin</var> is an <a for=/>origin</a>.

<li><p>Let <var>topLevelSite</var> be the result of <a lt="obtain a site">obtaining a site</a>,
given <var>topLevelOrigin</var>.
Expand Down

0 comments on commit a4503a8

Please sign in to comment.