Page requiring storage access

This demo is meant for debugging Safari partitioning sessionStorage access between a page opened as top-level, first-party context and iframe context. See Webkit Bugzilla .
  1. Open this page first as top-level window and interact with it to set top level storages. This is to set the experiment up and because the page being interacted with as first-party and setting first-party cookies is required by Safari's Storage Access Api implementation .
  2. Optionally:
  3. Then click "Open wrapper" to open another page which embeds this page as iframe.
  4. Request storage access in the iframe. Clicking the button also provides the Storage Access Api with the user interaction it's expecting.
  5. Try to read the storage we set up previously as top-level window. They are unfortunately not readable.
Other ways considered for sharing data between the top-level context and iframe:


Open wrapper