Site A

Demo of Storage Partitioning.

Explanation:

The demo uses two sites: site A and site B.

  • When you visit site A in the top-level context it sets data using various storage methods.
  • Site B embeds a page from site A and that embed attempts to read the storage options set previously.
  • When site A is embedded on site B, it doesn't have access to that data when the storage is partitioned and so the reads fail.
  • The demo uses the success or failure of each read to show whether data is partitioned.

For now, you can turn off storage partitioning in Chrome by setting the chrome://flags/#third-party-storage-partitioning Chrome flag to disabled to confirm this fails the partitoning test.

You can also test other browsers in the same way to see their partitioning status.