Re: [whatwg/storage] Session storage and changing browsing contexts (#119)

Would a system like this be easier than truly shared storage @mkruisselbrink @asutherland?

1. A top-level page contain a same-origin prerender. The same-origin prerendered page receives a [clone of session storage](https://storage.spec.whatwg.org/#legacy-clone-a-browsing-session-storage-shed).
1. Wait until the prerendered page activates.
1. Switch the session storage of the now-activated prerendered page from its clone to the session storage used by the old top-level page.
1. Fire "storage" events for every difference between the old cloned storage and the new storage.

This means that clicking back would take you to the previous page without changing session storage.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/119#issuecomment-784356962

Received on Tuesday, 23 February 2021 17:09:07 UTC