document.hasUnpartitionedCookieAccess() is an instance method that returns a Promise resolving to whether this document can use third-party, unpartitioned cookies (see MDN Document: hasUnpartitionedCookieAccess()). MDN calls it a new name for hasStorageAccess(). Learn when each name appears, Limited availability caveats, and how to feature-detect safely.
01
Kind
Instance method
02
Args
None
03
Returns
Promise<boolean>
04
API
Storage Access
05
Alias of
hasStorageAccess()
06
Status
Limited
Fundamentals
Introduction
Cookie names in APIs can be confusing. “Unpartitioned” means the classic shared cookie jar for a site — not the partitioned storage browsers use to reduce cross-site tracking. This method asks: does this document already have that access?
MDN: hasUnpartitionedCookieAccess() returns a Promise that resolves with a boolean indicating whether the document has access to third-party, unpartitioned cookies. It is part of the Storage Access API, and it is a new name for Document.hasStorageAccess().
💡
Think: “Same check, clearer name”
1) Prefer detecting hasStorageAccess for broad support 2) Also detect hasUnpartitionedCookieAccess in Chromium 3) await the Promise boolean 4) If false, consider requestStorageAccess() (MDN)
⚠️
Limited availability (MDN)
This newer method name is not Baseline. Firefox and Safari currently expose the Storage Access check mainly via hasStorageAccess(). Always feature-detect, and fall back to the older name when this one is missing.
An instance method on the Document interface from the Storage Access API (MDN). It takes no arguments and returns a Promise<boolean>. Details match hasStorageAccess() (MDN: see that page for more).
No parameters — call it with empty parentheses (MDN).
Return value — a Promise that resolves to true or false (MDN).
Meaning — whether the document has access to third-party, unpartitioned cookies (MDN).
Relationship — new name for hasStorageAccess() (MDN).
Next step — if false, you may call requestStorageAccess() (MDN example).
Exception — InvalidStateError if the Document is not yet active (MDN).
Foundation
📝 Syntax
General form of Document.hasUnpartitionedCookieAccess (MDN):
JavaScript
hasUnpartitionedCookieAccess()
Parameters
None (MDN).
Return value
A Promise that resolves with a boolean value indicating whether the document has access to third-party cookies — true if it does, and false if not (MDN). See hasStorageAccess() for more details (MDN).
Exceptions
InvalidStateError — thrown if the current Document is not yet active (MDN).
MDN quick sample
JavaScript
document.hasUnpartitionedCookieAccess().then((hasAccess) => {
if (hasAccess) {
// storage access has been granted already.
console.log("cookie access granted");
} else {
// storage access hasn't been granted already;
// you may want to call requestStorageAccess().
console.log("cookie access denied");
}
});
Compare
⚖️ hasUnpartitionedCookieAccess vs hasStorageAccess
Document.hasUnpartitionedCookieAccess() is Limited availability on MDN (not Baseline). Support is mainly Chromium-based. Prefer hasStorageAccess() for wider reach. Logos use the shared browser-image-sprite.png sprite from this project.
✓ Limited availability
Document.hasUnpartitionedCookieAccess()
Newer name for the Storage Access cookie check. Feature-detect and fall back to hasStorageAccess().
LimitedNot Baseline
Google Chrome125+
Yes
Microsoft Edge125+
Yes
Opera111+
Yes
Mozilla FirefoxNot supported
No
Apple SafariNot supported
No
Internet ExplorerNot supported
No
hasUnpartitionedCookieAccess()Partial
Bottom line: Use this clearer name when present. For Firefox/Safari and older browsers, call hasStorageAccess() instead.
Wrap Up
Conclusion
document.hasUnpartitionedCookieAccess() is the clearer, newer name for the Storage Access check that asks whether third-party unpartitioned cookies are already available. Learn it alongside hasStorageAccess(), which remains the Baseline-friendly entry point.
Fall back to hasStorageAccess() for Baseline reach
Branch on the Promise boolean (MDN)
Call requestStorageAccess() from a gesture when needed
Treat both names as the same Storage Access check (MDN)
❌ Don’t
Assume Firefox/Safari expose this newer name
Skip feature detection in production embeds
Confuse Limited availability with Deprecated
Forget cookie failures can still happen after true
Confuse this with Private State Token methods
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about hasUnpartitionedCookieAccess()
Newer name for the Storage Access cookie check.
5
Core concepts
📝01
Returns
Promise<bool>
MDN
🔄02
Args
none
MDN
🎯03
Alias
hasStorageAccess
same
⚡04
Status
Limited
MDN
🛡05
Fallback
hasStorageAccess
Baseline
❓ Frequently Asked Questions
MDN: Document.hasUnpartitionedCookieAccess() returns a Promise that resolves with a boolean indicating whether the document has access to third-party, unpartitioned cookies. It is part of the Storage Access API.
No. MDN does not mark it Deprecated, Experimental, or Non-standard. It is Limited availability (not Baseline) because some major browsers do not implement this newer name yet.
Yes. MDN: hasUnpartitionedCookieAccess() is a new name for Document.hasStorageAccess(). The older hasStorageAccess() name remains Baseline Widely available and is not planned for removal.
No. MDN: hasUnpartitionedCookieAccess() takes no parameters.
Prefer feature-detecting both names. For widest support today, call hasStorageAccess() when available, and fall back or also try hasUnpartitionedCookieAccess() in Chromium. Both describe the same check when present.
MDN example (shared with hasStorageAccess): storage access has not been granted already; you may want to call document.requestStorageAccess().
Did you know?
MDN says there are currently no plans to remove hasStorageAccess() in favor of hasUnpartitionedCookieAccess() — so both names can coexist in your mental model and your feature-detect helpers.