← Chrome 153 reference

v153 · privacy-sandbox · storage-access · deprecation

Deprecate and Remove: document.requestStorageAccessFor()

Chrome 153 removes document.requestStorageAccessFor() (rSAFor), a top-level page API that allowed sites to request Storage Access on behalf of embedded cross-site resources. rSAFor was only useful in conjunction with Related Website Sets, which is also being removed.

Deprecation / removal: document.requestStorageAccessFor() is being removed from Chrome. Calls will throw or be rejected. Use the standard document.requestStorageAccess() from within the embedded frame instead.

at a glance

Shipped inChrome 153 (Stepped rollout — removal begins)
StatusDeprecation / removal in progress
Replacementdocument.requestStorageAccess() called from within the embedded iframe
Standards position (Firefox)No signal
Standards position (Safari)No signal
ChromeStatus5162221567082496 — Deprecate and Remove: document.requestStorageAccessFor
Source: chromestatus.com/feature/5162221567082496

background

document.requestStorageAccessFor(requestedOrigin) (rSAFor) was a Chrome-specific extension to the Storage Access API. Unlike the standard document.requestStorageAccess() (which must be called from within the embedded iframe), rSAFor was called by the top-level page to request access on behalf of a cross-site embed. This allowed RWS-member sites to grant each other storage access without the embedded frame needing to initiate the request.

Because rSAFor was tightly coupled to Related Website Sets (which is also being removed), it has no standalone use case and is being removed alongside it.

Source: chromestatus feature summary

migration

Before (Chrome rSAFor)After (standard SAA)
// Top-level page requests access for embed
await document.requestStorageAccessFor('https://embed.example')
// Embed requests its own access
// (called from within the embedded iframe)
await document.requestStorageAccess()

The standard Storage Access API (document.requestStorageAccess()) must be called from within the iframe that needs access, and typically requires a user gesture. This is the cross-browser standard path.

Source: chromestatus feature summary

see also