Skip to content

Commit c335591

Browse files
committed
Specify handling of partitioned cookies in deletion
1 parent d6335ec commit c335591

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,10 @@ spec. It would be nice to unify these in the future.</p>
755755
To <dfn>clear cookies for host</dfn> given a [=host=] |host|, perform the
756756
following steps:
757757

758-
1. Let |cookieList| be the set of cookies from the [=cookie store=] whose
759-
domain attribute is a [=domain-match=] with |host|.
758+
1. Let |cookieList| be a set of cookies, initially empty.
759+
1. [=list/For each=] cookie |cookie| in the [=cookie store=], if either of the following is true, add |cookie| to |cookieList|:
760+
- |cookie| is not partitioned, and |cookie|'s domain attribute is a [=domain-match=] with |host|; or
761+
- |cookie| is partitioned, and |cookie|'s partition key is equal to |host|'s [=obtain a site|site=].
760762
1. [=list/For each=] |cookie| in |cookieList|:
761763
1. Remove |cookie| from the [=cookie store=].
762764

0 commit comments

Comments
 (0)