v152 · Deprecation · Storage Access

API Surface Probe

Live check of all three Storage Access API methods in this browser — hasStorageAccess(), requestStorageAccess(), and requestStorageAccessFor(). The last one is deprecated in Chrome 152; the first two are the supported replacement path.

Probing Storage Access API surfaces…
API surface present Chrome 152 status notes
Live API calls (run from this first-party context)
Click a button to call the API and see the result.

Migration: requestStorageAccessFor → requestStorageAccess

Deprecated (pre-Chrome 152)
// Top-level page requesting storage
// access on behalf of an embedded site
await document.requestStorageAccessFor(
  'https://embedded.example.com'
);
// Deprecated — Chrome 152 removes this
Replacement (Chrome 152+)
// Inside the embedded iframe:
const hasAccess = await document.hasStorageAccess();
if (!hasAccess) {
  // Requires a user gesture
  await document.requestStorageAccess();
}
// Embedded site owns the request

see also