WICG / first-party-sets

https://wicg.github.io/first-party-sets/
292 stars 76 forks source link

Questions about document.requestStorageAccessFor and FPS #182

Closed miqez closed 1 year ago

miqez commented 1 year ago

My questions:

I performed a First-Party Sets analysis. I performed the following steps:

a) I changed the following flags: Enable First-Party Sets: enabled Storage Access API permission UI: enabled Storage Access API: enabled

b) I blocked third-party cookies

cfredric commented 1 year ago

Hi @miqez,

Thanks for trying this out! It's a bit tough to tell what might be going wrong in your demo, but it does sound like one/some of the command-line switches didn't work properly.

I get a FAIL status despite the flags being enabled.

Can you give any info on what part fails for you? There are a bunch of PASS/FAIL criteria that are checked by the RWS demo, so it would be helpful to know which one says FAIL.

If I have followed all the steps correctly, should I be able to access the cookies of the domain associated with the primary domain?

Yes, the associated site should be able to access its own cookies when embedded under the primary site (e.g. an embedded iframe), after calling document.requestStorageAccess() and awaiting the result. Note that the primary site will not get direct access to the associated site's cookies; that would break the Same-Origin Policy, which is an important web security boundary. Also note that the call to document.requestStorageAccess() is (almost always) required for security reasons; unpartitioned cookies won't be accessible to the embedded site until/unless it calls that API.

a) I changed the following flags:

Please be aware that those flags in chrome://flags aren't quite sufficient for enabling everything that the RWS demo relies on; if possible, it'd be better to use the provided command-line instead.

I created my own demo

If you can give a link to your demo, I could take a peek at it!

miqez commented 1 year ago

Hi, I'm sorry I'm only replying now. I don't know how, but I reinstalled the browser, restored the default settings and it worked. thanks for the help