cookie-store icon indicating copy to clipboard operation
cookie-store copied to clipboard

Passing in URL to getAll when called from Service Worker

Open RupinMittal opened this issue 1 year ago • 7 comments

The spec (https://wicg.github.io/cookie-store/#CookieStore-getAll) has a step for getAll() that says if a URL is passed in,

"If this's relevant global object is a Window object and parsed does not equal url, then return a promise rejected with a TypeError."

It appears that Chrome does this check for Service worker contexts as well. Which is the right behavior to follow?

CC @annevk

RupinMittal avatar Jan 29 '25 00:01 RupinMittal