Skip to content

Commit

Permalink
Specify handling of partitioned cookies in deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
svendlarsen committed Jul 9, 2024
1 parent d6335ec commit c335591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,10 @@ spec. It would be nice to unify these in the future.</p>
To <dfn>clear cookies for host</dfn> given a [=host=] |host|, perform the
following steps:

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

Expand Down

0 comments on commit c335591

Please sign in to comment.