Skip to content

Commit

Permalink
Fix definition of site for null-registrable-domain cases
Browse files Browse the repository at this point in the history
In particular, different ports on the same IP address need to be
considered same-site, and public-suffix roots need to be considered
same-site to their subdomains.

Closes #5940; see
#5940 (comment) in
particular.
  • Loading branch information
domenic committed Sep 24, 2020
1 parent 3ba8e89 commit 8f4f348
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -80073,9 +80073,7 @@ interface <dfn>BarProp</dfn> {
<p>A <dfn export>scheme-and-registrable-domain</dfn> is a <span>tuple</span> of a <span
data-x="concept-url-scheme">scheme</span> and a <span data-x="concept-domain">domain</span>.</p>

<p>A <dfn export>site</dfn> is an <span data-x="concept-origin-opaque">opaque origin</span>, a
<span data-x="concept-origin-tuple">tuple origin</span> whose <span
data-x="concept-origin-host">host</span>'s <span>registrable domain</span> is null, or a
<p>A <dfn export>site</dfn> is an <span data-x="concept-origin-opaque">opaque origin</span> or a
<span>scheme-and-registrable-domain</span>.</p>

<p>To <dfn export>obtain a site</dfn>, given an origin <var>origin</var>, run these steps:</p>
Expand All @@ -80085,7 +80083,8 @@ interface <dfn>BarProp</dfn> {
return <var>origin</var>.</p></li>

<li><p>If <var>origin</var>'s <span data-x="concept-origin-host">host</span>'s <span>registrable
domain</span> is null, then return <var>origin</var>.</p></li>
domain</span> is null, then return <span data-x="concept-origin-scheme">scheme</span>,
<var>origin</var>'s <span data-x="concept-origin-host">host</span>).</p></li>

<li><p>Return (<var>origin</var>'s <span data-x="concept-origin-scheme">scheme</span>,
<var>origin</var>'s <span data-x="concept-origin-host">host</span>'s <span>registrable
Expand Down

0 comments on commit 8f4f348

Please sign in to comment.