Testing locally with 3rd-party cookies disabled and site data enabled #118
-
I was reading this Chrome blog post - origin trial from 2022 and try to test my current production site to see any impact.
I know that Partitioning using "double keyed" is applied to site data but since a.com has no intentions to retrieve b.com site data. Why did Chrome blocks site b.com to access localStorage on its own site? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Yes, this is the current expected behavior (and has been for a few years). We plan to enable partitioned storage even when 3P cookies are blocked in a future release. |
Beta Was this translation helpful? Give feedback.
-
Yes, every API does indeed have a flag that you can enable to test locally. I would recommend looking at the developer article corresponding to the API. For example, see First-Party Sets testing instructions.
@miketaylr shared our expected shipping behavior in a previous comment. I wanted to add that in order to enable developers to test third-party cookie blocking with storage partitioning enabled, we are in the process of developing a command-line switch for local testing. Please see the tracking bug: crbug.com/1441039. The flag is available starting M115, but we are in the process of adding the storage partitioning behavior to it. We're hoping to make this available starting Chrome 116. The change should be available on the dev channel in a couple of weeks. |
Beta Was this translation helpful? Give feedback.
-
Hello @DCtheTall, indeed I run the same Chrome Canary on version 117. But I was able to make it work using Chrome Beta on version 115. I expect Chrome Canary will get updated more frequently than Chrome Beta, and it will get all the patches that you mentioned there. Even I do this, it does not work for until I tried Chrome Beta instead of Chrome Canary. In summary, it all works out when I use Chrome Beta
|
Beta Was this translation helpful? Give feedback.
Yes, this is the current expected behavior (and has been for a few years). We plan to enable partitioned storage even when 3P cookies are blocked in a future release.