Extending Storage Access API (SAA) to non-cookie storage #262
Labels
concerns: integration
Can't be used w/ other web platform features (or unclear what happens if used together)
from: Google
Proposed, edited, or co-edited by Google.
topic: privacy
topic: storage
Spec relates to storage mechanisms such as cookies, IndexedDB, or LocalStorage
venue: none / personal repository
The venue for discussion is a GitHub repository not affiliated with a standards body.
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.
The text was updated successfully, but these errors were encountered: