Other browser storage in third-party context
Can embedded content use localStorage, IndexedDB and similar storage?
Cookies aren’t the only way to store an identifier. Embedded content can also use localStorage, sessionStorage, IndexedDB, the Cache API, service workers and more. If any of these were shared across sites, a third party could use them in place of cookies.
All five browsers now partition this storage by top-level site by default: an iframe from b.example on a.example gets different storage from the same iframe on c.example. Some browsers also block it entirely for known trackers, or clear it when the user leaves the site.
By browser
Brave
Partitioned- Partitioned access in frame.
- Partitioned storage is cleared shortly after the user leaves the site (closes all its tabs), or when the browser is closed.
Sources (2) · 2026-10-31
- Cookie Status test, 2026-10-31
- privacytests.org (2026-10-22)
Chrome
Partitioned- Chrome partitions third-party storage.
- The HTTP cache is partitioned by top-level site, so cached files can’t be used to track across sites. Chrome 86+ New
Edge
Partitioned- Access blocked for known trackers, with the same mitigations as cookies.
- Storage of other domains is partitioned. New
Sources (2) · 2026-10-30
- Cookie Status test, Edge 155
- privacytests.org (2026-10-22)
Firefox
PartitionedlocalStorageandIndexedDBrestricted for known trackers.sessionStorageis not restricted.- Storage is partitioned between the site and the third-party. Storage is not shared across sites.
- Network state, including the HTTP cache, is partitioned by top-level site. Firefox 85+ New
Sources (2) · 2026-10-31
Safari
PartitionedlocalStorageis partitioned and reset between application launches.IndexedDBis partitioned and cleared when Safari quits. NewsessionStorageis partitioned.- The HTTP cache for third-party content is partitioned by top-level site. New
Sources (2) · 2026-10-30
- Cookie Status test, Safari 26
- Tracking Prevention in WebKit
History
Total Cookie Protection on for all Firefox users
Firefox partitions cookies and other storage of every third party by top-level site in its default Standard mode.
Brave announces ephemeral third-party storage announced
Instead of blocking storage in third-party frames, Brave gives each one a temporary partition that is cleared when the user leaves the site. It was turned on by default later in 2021.
Firefox 85 partitions network state
The HTTP cache and other network state are kept separate for each top-level site, so “supercookies” stored there can’t track users across sites.