VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

The Gold Standard of Websites | Separating Storage Access API Grants from Partitioned Cookie Availability

Three learners review open books together at a classroom table, with stacks of textbooks, stationery and a whiteboard in the bright room.

An embedded comments service can receive a Partitioned cookie for news.example while hasStorageAccess() is false. After a permitted requestStorageAccess() call, selected unpartitioned cookies may become available, but the partitioned cookie does not turn into an unpartitioned one. Treating the grant as an on/off switch for all storage obscures both paths.

This lesson continues The Gold Standard of Websites, the Gold Standard of Education and the How X Works hub. Every site, cookie and permission outcome is an original teaching fixture. The lesson explains evidence and fallback design without promising uniform browser support, bypassing user choice or recommending cross-site tracking.

Record top-level site, embedded origin, frame ancestry, cookie name and attributes, partitioned or unpartitioned state, API support, permission outcome and request attachment. Treat browser denial, API absence and an empty cookie jar as different results.

The PrivacyCG Storage Access API report defines the API model and its user-agent-mediated access to unpartitioned data. It is a Community Group Report rather than a W3C standards-track recommendation, so implementation and policy details must be checked in the target browsers.

THE GOLD STANDARD · WEBSITES

A storage-access grant and a partitioned cookie answer different questions

The Storage Access API concerns whether an embedded context may obtain access to unpartitioned storage or cookies under the user agent’s rules. A partitioned cookie remains keyed to a top-level site context and can be available without such a grant. Grant state, partition key, cookie attributes and actual request attachment must therefore be recorded separately.

Fast route
Start with the decisive rule.
Start this route

Measurement route
Build the browser evidence ledger.
Start this route

Comparison route
Separate the nearest lookalikes.
Start this route

Transfer route
Change the context and retest.
Start this route

Reporting route
State limits and continue reading.
Start this route

Chapter contents

Open the full chapter index

1. Give the two-path answer

A Storage Access API grant can enable access to unpartitioned data for an embedded context; partitioned cookies use a top-level-site partition and do not depend on that grant in the same way.

Original worked example. chat.example inside news.example sees its news partition cookie while hasStorageAccess returns false. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Embed chat.example inside sports.example. A different partition is selected without changing the embedded origin. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Inspect the partition key, grant state and actual Cookie header separately. If this check fails, mark the claim unavailable and repair the method before continuing.

Keep raw browser or protocol evidence, application policy and conclusion in separate fields so the first unsupported inference remains visible.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Contents · Next chapter

2. Name the storage population

Before testing, classify each item as unpartitioned or partitioned and state which top-level site selects the partition.

Original worked example. Cookie p has Secure and Partitioned attributes; cookie u is an ordinary unpartitioned cookie. Only p is expected before a grant in the teaching browser. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Remove Partitioned from p. It moves to the unpartitioned population rather than preserving the old behavior. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Save Set-Cookie lines and browser storage views. If this check fails, mark the claim unavailable and repair the method before continuing.

Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero and must not be converted into a convenient denial or success.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

3. Read hasStorageAccess narrowly

A true result reports the API’s relevant access state for the document; it is not a list of every cookie that will attach.

Original worked example. The frame receives true yet an expired unpartitioned cookie is absent from the next request. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Create a valid matching cookie. Request attachment changes while the grant result stays true. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Check domain, path, expiry, Secure and SameSite conditions after the API result. If this check fails, mark the claim unavailable and repair the method before continuing.

Repeat the reasoning after changing one consequential premise while holding every other field fixed. Preserve the prediction before inspecting the result.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

4. Treat requestStorageAccess as mediated

The call is subject to user-agent requirements, permissions and interaction rules; invoking it does not guarantee success.

Original worked example. A button click calls requestStorageAccess and the browser grants it. The page records resolved rather than assuming approval at call time. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Call on page load without the required activation. The promise rejects and the partitioned path continues. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Record support, invocation context, resolution and exception. If this check fails, mark the claim unavailable and repair the method before continuing.

Carry one plausible alternative through the ledger and choose the observation that separates it from the leading account.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

5. Keep cookie attachment separate

Access in script, document.cookie visibility and network Cookie attachment are related but not interchangeable observations.

Original worked example. An HttpOnly unpartitioned cookie attaches after the grant but is never visible to document.cookie. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Replace it with a non-HttpOnly test cookie. Script visibility changes without redefining the grant. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Capture both JavaScript and server request evidence. If this check fails, mark the claim unavailable and repair the method before continuing.

Name the observer, execution context and timing of each value. Browser, server, frame, worker and cache evidence can describe different boundaries.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

6. Follow the top-level partition key

A partitioned cookie available under one top-level site does not imply availability under another.

Original worked example. embed.example stores cart=7 under shop.example. The same embed under blog.example receives a different or empty partition. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Return to shop.example. The original partitioned state reappears. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Log top-level site for every observation. If this check fails, mark the claim unavailable and repair the method before continuing.

Archive exact standards, browser versions, source code, calculations and raw receipts so another reader can reproduce the conclusion.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

7. Separate grant scope from permanence

A browser may scope or expire grants according to its policy; a resolved call is not a permanent cross-site entitlement.

Original worked example. The frame has access during a session and loses it after the browser’s grant state is cleared. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Revisit with a fresh profile. The application must request or fall back again. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Test lifecycle boundaries rather than promising persistence. If this check fails, mark the claim unavailable and repair the method before continuing.

Keep raw browser or protocol evidence, application policy and conclusion in separate fields so the first unsupported inference remains visible.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

8. Respect frame and sandbox conditions

Embedding attributes and permissions can affect whether the API is available or usable.

Original worked example. A frame with the required embedding conditions can request access. A more restrictive sandbox configuration blocks the attempt. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Add only the necessary sandbox token and retest without changing cookies. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Archive the complete iframe attributes and response policies. If this check fails, mark the claim unavailable and repair the method before continuing.

Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero and must not be converted into a convenient denial or success.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

9. Build four observable states

Cross grant true or false with partitioned cookie present or absent; each combination has a different explanation.

Original worked example. The matrix includes false/present for a working partitioned session and true/absent for a grant with no matching unpartitioned cookie. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Expire the partitioned cookie. Grant state does not move. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Require evidence in both matrix columns before diagnosing. If this check fails, mark the claim unavailable and repair the method before continuing.

Repeat the reasoning after changing one consequential premise while holding every other field fixed. Preserve the prediction before inspecting the result.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

10. Handle unsupported browsers

API absence differs from denial. A privacy-preserving service should retain a usable partitioned or stateless route.

Original worked example. The feature test finds no requestStorageAccess method and renders a one-time signed link instead. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Run in a supporting browser that denies the request. The fallback is the same but telemetry labels differ. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Store unsupported and rejected as separate categories. If this check fails, mark the claim unavailable and repair the method before continuing.

Carry one plausible alternative through the ledger and choose the observation that separates it from the leading account.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

11. Design user-facing requests carefully

Ask only at a moment where the user understands the embedded function and can choose; repeated prompts are not a technical repair.

Original worked example. The comments frame requests access after the user chooses sign in, explaining the account continuity purpose. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Remove the sign-in action. The frame stays partitioned and anonymous. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Test the complete flow with refusal as a normal outcome. If this check fails, mark the claim unavailable and repair the method before continuing.

Name the observer, execution context and timing of each value. Browser, server, frame, worker and cache evidence can describe different boundaries.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

12. Keep identity separate from storage

A cookie’s availability does not prove current identity, authorisation or user intent.

Original worked example. An old session cookie attaches after a grant but the server requires reauthentication before showing account data. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Revoke the server session. Browser storage evidence remains while access is denied. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Verify session state on the server after storage checks. If this check fails, mark the claim unavailable and repair the method before continuing.

Archive exact standards, browser versions, source code, calculations and raw receipts so another reader can reproduce the conclusion.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

13. Test clearing by population

Clearing one partition, an unpartitioned cookie or site data can produce different results and should not be described as one universal logout.

Original worked example. The user deletes the news.example partition for embed.example; the sports.example partition remains. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Clear the unpartitioned account cookie. The partitioned anonymous state remains available. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Record which storage population and site context was cleared. If this check fails, mark the claim unavailable and repair the method before continuing.

Keep raw browser or protocol evidence, application policy and conclusion in separate fields so the first unsupported inference remains visible.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

14. Avoid tracking shortcuts

The API is not a promise that third-party tracking will work, and partitioned cookies are intentionally separated by top-level context.

Original worked example. A developer tries to merge partition identifiers on the server. The lesson rejects that as a different privacy and governance decision. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Use a top-level sign-in handoff with explicit user action instead. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Review purpose, consent and data minimisation separately from browser mechanics. If this check fails, mark the claim unavailable and repair the method before continuing.

Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero and must not be converted into a convenient denial or success.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

15. Repair common diagnostic errors

A missing account cookie does not prove no grant; a false grant does not prove no storage; and a visible partitioned cookie does not prove cross-site continuity.

Original worked example. The support ticket says storage blocked although the partitioned preference cookie is present. The real missing item is an expired unpartitioned session. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Renew the session after a valid grant. Account continuity returns. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Label the exact cookie and population in every report. If this check fails, mark the claim unavailable and repair the method before continuing.

Repeat the reasoning after changing one consequential premise while holding every other field fixed. Preserve the prediction before inspecting the result.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

16. Answer common questions

Partitioned cookies can work without a grant, a grant does not unpartition them, true does not guarantee a matching cookie and rejection can be expected.

Original worked example. A reader asks whether requestStorageAccess unlocks all browser storage. The bounded answer is no. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Add a separate IndexedDB test only where the current API and browser documentation support it. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Answer with current implementation evidence and dated sources. If this check fails, mark the claim unavailable and repair the method before continuing.

Carry one plausible alternative through the ledger and choose the observation that separates it from the leading account.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

17. Run a reproducible two-site fixture

Use two top-level sites, one embedded origin, named partitioned and unpartitioned cookies, explicit user actions and server logs.

Original worked example. The fixture predicts grant result and cookie attachment across news, sports, refusal, clearing and fresh-profile cases. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. Change one cookie attribute at a time and rerun the table. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Archive browser version, policies, cookie lines, console results and requests. If this check fails, mark the claim unavailable and repair the method before continuing.

Name the observer, execution context and timing of each value. Browser, server, frame, worker and cache evidence can describe different boundaries.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents · Next chapter

18. Use the report and continue

The PrivacyCG report supplies the API model, while companion lessons develop site data clearing, embedding policy and cross-origin boundaries.

Original worked example. The final ledger states support, grant, partition, cookie attributes, request result and limits. The requests, states, values and observations are explicit so the reader can reconstruct the decision instead of trusting a label.

Changed-context transfer. As implementations evolve, rerun the fixture rather than treating a browser-specific result as universal. State what changed, predict the consequence and revise only the conclusion that depended on that condition.

Practical evidence check. Link the dated report and verified specialists. If this check fails, mark the claim unavailable and repair the method before continuing.

Archive exact standards, browser versions, source code, calculations and raw receipts so another reader can reproduce the conclusion.

Before closing, reconcile the original example against the chapter rule: identify the eligible evidence, repeat the state transition, test the changed condition and mark the first unsupported inference. Preserve the original inputs beside the revised result so another reader can see exactly what moved. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation would change the conclusion. This keeps the lesson useful when the browser, request, response or execution context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.

Previous chapter · Contents

Sources and further study

PrivacyCG Storage Access API. Used for the standard definitions, material mechanisms or method limits developed in this lesson.

The worked examples and transfer checks are developed here and state their own assumptions. The linked sources support the underlying browser, protocol and measurement principles.

Return to contents · Return to The Gold Standard of Websites