Skip to content

Extending Storage Access API (SAA) to non-cookie storage #262

@arichiv

Description

@arichiv

Title of the spec

Extending Storage Access API (SAA) to non-cookie storage

URL to the spec

https://privacycg.github.io/saa-non-cookie-storage/

Issue Tracker URL

https://crbug.com/1484966

TAG Design Review URL

w3ctag/design-reviews#906

Mozilla standards-positions issue URL

mozilla/standards-positions#898

Description

We propose an extension of the Storage Access API (backwards compatible) to allow access to unpartitioned (cookie and non-cookie) storage in a third-party context, and imagine the API mechanics to be roughly like this (JS running in an embedded iframe):

// Request a new storage handle via rSA (this should prompt the user)
let handle = await document.requestStorageAccess({all: true});
// Write some cross-site localstorage
handle.localStorage.setItem("userid", "1234");
// Open or create an indexedDB that is shared with the 1P context
let messageDB = handle.defaultBucket.indexedDB.open("messages");

The same flow would be used by iframes to get a storage handle when their top-level ancestor successfully called rSAFor, just that in this case the storage-access permission was already granted and thus the rSA call would not require a user gesture or show a prompt, allowing for “hidden” iframes accessing storage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    concerns: integrationCan't be used w/ other web platform features (or unclear what happens if used together)from: GoogleProposed, edited, or co-edited by Google.topic: privacytopic: storageSpec relates to storage mechanisms such as cookies, IndexedDB, or LocalStoragevenue: none / personal repositoryThe venue for discussion is a GitHub repository not affiliated with a standards body.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions