Skip to content

Commit 08054db

Browse files
Cookie infrastructure includes deletion
1 parent f6d0076 commit 08054db

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

fetch.bs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4344,6 +4344,11 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
43444344
</ol>
43454345
</div>
43464346

4347+
<h3 id=cookie-infrastructure>Cookie Infrastructure</h3>
4348+
4349+
These algorithms are not only for use with the `<code>Cookie</code>` header, and are used in other
4350+
specifications.
4351+
43474352
<div algorithm>
43484353
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var>request</var>,
43494354
run these steps:
@@ -4364,7 +4369,19 @@ run these steps:
43644369
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>cross-site</code>",
43654370
return "<code>UnsetOrLess</code>".
43664371

4367-
<li><p>Return "StrictOrLess".
4372+
<li><p>Return "<code>StrictOrLess</code>".
4373+
</ol>
4374+
</div>
4375+
4376+
<div algorithm>
4377+
<p> To <dfn>clear site cookies</dfn> for <a for=/>origin</a> <var>origin</var>, run these steps:
4378+
4379+
<ol>
4380+
<li><p>Remove all cookies that were stored with a host is either equal to |origin|'s <a for=url>host</a>,
4381+
or have a <a>registrable domain</a> equal to |origin|'s <a for=url>host</a>'s <a>registrable domain</a>.
4382+
4383+
<p class=XXX>The cookie specification doesn't yet have a way to do this algorithmically, so we
4384+
settle for this definition.
43684385
</ol>
43694386
</div>
43704387

0 commit comments

Comments
 (0)