Skip to content

Top-Frame lifetime, partitioned storage for embedded frames #18

Open
@pes10k

Description

@pes10k

Currently frames can either have storage blocked or allowed, w/o an in between. This is unideal for several reasons. Some examples include

  1. There are cases where two eTLD+1 equiv frames on the same page may wish to work together (and to use storage to do so) but are currently unable to without relying on the first party for intermediation.
  2. Users may wish to prevent frames to have storage for privacy reasons, but to not have the embedded party's functionality break. Partitioned frame length storage would allow users / implementors a way to, by default, give frames storage "only for as long as i'm using it".
  3. Frames may appear and disappear while a user is interacting with the top level frame. An option to tie the embedded frame's storage-lifetime to the top level frame provides a in-standard, temporary way for storage to be persisted for the third party, but only for as long as the user is interacting with the 1p.

Safari's current approach of persistent, partitioned 3p storage allows more than is needed in such cases, and other browsers "all block or all allow" approaches allow either too little (storage is blocked), or way too much (un partitioned storage).

The proposal here is to provide an in-standard way of defining the following:

  1. By default all 3p frames created during the lifetime of the top level frame have storage cleared once the top level frame is closed
  2. Two eTLD+1 equiv frames see the same storage area
  3. These storage areas are partitioned (e.g. A under B sees different storage than A under C or A as top level)
  4. Storage Access API allows frames to request persistent, unpartitioned storage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions