Skip to content

Commit 8c42456

Browse files
queengooborgElchi3ddbeck
authored
Add Cookie Store and Partitioned Cookies features (#1858)
* Add features for Cookie Store API * Update partitioned-cookies.yml * Update cookie-store.yml * Update partitioned-cookies.yml.dist * Update features/partitioned-cookies.yml Co-authored-by: Daniel D. Beck <[email protected]> --------- Co-authored-by: Florian Scholz <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 604a747 commit 8c42456

File tree

4 files changed

+59
-41
lines changed

4 files changed

+59
-41
lines changed
Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
1-
draft_date: 2024-09-09
2-
name: Cookie Store API
3-
description: TODO
1+
name: Cookie store
2+
description: The `CookieStore` interface is an asynchronous and promise-based API for managing cookies. It does not rely on document and so is available to service workers as well.
43
spec: https://wicg.github.io/cookie-store/
4+
caniuse: cookie-store-api
55
compat_features:
6-
- api.CookieChangeEvent
7-
- api.CookieChangeEvent.CookieChangeEvent
8-
- api.CookieChangeEvent.changed
9-
- api.CookieChangeEvent.changed.partitioned_property
10-
- api.CookieChangeEvent.deleted
11-
- api.CookieChangeEvent.deleted.partitioned_property
126
- api.CookieStore
137
- api.CookieStore.change_event
148
- api.CookieStore.delete
15-
- api.CookieStore.delete.partitioned_option
169
- api.CookieStore.get
17-
- api.CookieStore.get.partitioned_return_property
1810
- api.CookieStore.getAll
19-
- api.CookieStore.getAll.partitioned_return_property
2011
- api.CookieStore.set
21-
- api.CookieStore.set.partitioned_option
2212
- api.CookieStoreManager
2313
- api.CookieStoreManager.getSubscriptions
2414
- api.CookieStoreManager.subscribe
2515
- api.CookieStoreManager.unsubscribe
16+
- api.ServiceWorkerRegistration.cookies
17+
- api.CookieChangeEvent
18+
- api.CookieChangeEvent.changed
19+
- api.CookieChangeEvent.CookieChangeEvent
20+
- api.CookieChangeEvent.deleted
2621
- api.ExtendableCookieChangeEvent
27-
- api.ExtendableCookieChangeEvent.ExtendableCookieChangeEvent
2822
- api.ExtendableCookieChangeEvent.changed
29-
- api.ExtendableCookieChangeEvent.changed.partitioned_property
3023
- api.ExtendableCookieChangeEvent.deleted
31-
- api.ExtendableCookieChangeEvent.deleted.partitioned_property
24+
- api.ExtendableCookieChangeEvent.ExtendableCookieChangeEvent
3225
- api.ServiceWorkerGlobalScope.cookieStore
33-
- api.ServiceWorkerGlobalScope.cookiechange_event
34-
- api.ServiceWorkerRegistration.cookies
3526
- api.Window.cookieStore
27+
- api.ServiceWorkerGlobalScope.cookiechange_event

features/draft/spec/cookie-store.yml.dist renamed to features/cookie-store.yml.dist

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
status:
55
baseline: false
66
support:
7-
chrome: "114"
8-
chrome_android: "114"
9-
edge: "114"
7+
chrome: "87"
8+
chrome_android: "87"
9+
edge: "87"
1010
compat_features:
11-
# baseline: false
12-
# support:
13-
# chrome: "87"
14-
# chrome_android: "87"
15-
# edge: "87"
1611
- api.CookieChangeEvent
1712
- api.CookieChangeEvent.CookieChangeEvent
1813
- api.CookieChangeEvent.changed
@@ -35,18 +30,3 @@ compat_features:
3530
- api.ServiceWorkerGlobalScope.cookiechange_event
3631
- api.ServiceWorkerRegistration.cookies
3732
- api.Window.cookieStore
38-
39-
# ⬇️ Same status as overall feature ⬇️
40-
# baseline: false
41-
# support:
42-
# chrome: "114"
43-
# chrome_android: "114"
44-
# edge: "114"
45-
- api.CookieChangeEvent.changed.partitioned_property
46-
- api.CookieChangeEvent.deleted.partitioned_property
47-
- api.CookieStore.delete.partitioned_option
48-
- api.CookieStore.get.partitioned_return_property
49-
- api.CookieStore.getAll.partitioned_return_property
50-
- api.CookieStore.set.partitioned_option
51-
- api.ExtendableCookieChangeEvent.changed.partitioned_property
52-
- api.ExtendableCookieChangeEvent.deleted.partitioned_property

features/partitioned-cookies.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Partitioned cookies
2+
description: Partitioned cookies allow you to opt a cookie into partitioned storage, with a separate cookie jar per top-level site. Also known as Cookies Having Independent Partitioned State or CHIPS.
3+
spec: https://wicg.github.io/cookie-store/
4+
compat_features:
5+
- api.CookieChangeEvent.changed.partitioned_property
6+
- api.CookieChangeEvent.deleted.partitioned_property
7+
- api.CookieStore.delete.partitioned_option
8+
- api.CookieStore.get.partitioned_return_property
9+
- api.CookieStore.getAll.partitioned_return_property
10+
- api.CookieStore.set.partitioned_option
11+
- api.ExtendableCookieChangeEvent.changed.partitioned_property
12+
- api.ExtendableCookieChangeEvent.deleted.partitioned_property
13+
- http.headers.Set-Cookie.Partitioned

features/partitioned-cookies.yml.dist

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated from: partitioned-cookies.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "114"
8+
chrome_android: "114"
9+
edge: "114"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "114"
14+
# chrome_android: "114"
15+
# edge: "114"
16+
# firefox: "131"
17+
# firefox_android: "131"
18+
- http.headers.Set-Cookie.Partitioned
19+
20+
# ⬇️ Same status as overall feature ⬇️
21+
# baseline: false
22+
# support:
23+
# chrome: "114"
24+
# chrome_android: "114"
25+
# edge: "114"
26+
- api.CookieChangeEvent.changed.partitioned_property
27+
- api.CookieChangeEvent.deleted.partitioned_property
28+
- api.CookieStore.delete.partitioned_option
29+
- api.CookieStore.get.partitioned_return_property
30+
- api.CookieStore.getAll.partitioned_return_property
31+
- api.CookieStore.set.partitioned_option
32+
- api.ExtendableCookieChangeEvent.changed.partitioned_property
33+
- api.ExtendableCookieChangeEvent.deleted.partitioned_property

0 commit comments

Comments
 (0)