Skip to content

Commit 6141054

Browse files
committed
Add comment
1 parent 257a042 commit 6141054

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/rum-core/src/browser/cookieObservable.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ function listenToCookieStoreChange(configuration: Configuration) {
3434
(window as CookieStoreWindow).cookieStore!,
3535
DOM_EVENT.CHANGE,
3636
(event) => {
37+
// Based on our experimentation, we're assuming that entries for the same cookie cannot be in both the 'changed' and 'deleted' arrays.
38+
// However, due to ambiguity in the specification, we asked for clarification: https://github.com/WICG/cookie-store/issues/226
3739
event.changed
3840
.concat(event.deleted)
3941
.filter((change) => change.name === cookieName)

0 commit comments

Comments
 (0)