Skip to content

Commit 087351a

Browse files
committed
Build a bridge for "cookie default path"
This is needed to properly solve whatwg/cookiestore#242. httpwg/http-extensions#3194 has been filed to eventually document this dependency.
1 parent d8d820b commit 087351a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

fetch.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262
5858
url:current-realm;text:current realm
5959

6060
urlPrefix:https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies#;type:dfn;spec:cookies
61+
url:name-cookie-default-path;text:cookie default path
6162
url:name-cookie-store-and-limits;text:cookie store
6263
url:name-parse-and-store-a-cookie;text:parse and store a cookie
6364
url:name-parse-a-cookie;text:parse a cookie
@@ -3501,6 +3502,20 @@ them conveniently here. [[COOKIES]].
35013502
</ol>
35023503
</div>
35033504

3505+
<div algorithm>
3506+
<p>To obtain a <dfn export>serialized cookie default path</dfn> given a <a for=/>URL</a>
3507+
<var>url</var>:
3508+
3509+
<ol>
3510+
<li><p>Let <var>cloneURL</var> be a clone of <var>url</var>.
3511+
3512+
<li><p>Set <var>cloneURL</var>'s <a for=url>path</a> to the <a>cookie default path</a> of
3513+
<var>cloneURL</var>'s <a for=url>path</a>.
3514+
3515+
<li><p>Return the <a lt="URL path serializer">URL path serialization</a> of <var>cloneURL</var>.
3516+
</ol>
3517+
</div>
3518+
35043519

35053520
<h3 id=origin-header>`<code>Origin</code>` header</h3>
35063521

0 commit comments

Comments
 (0)