Storage feature detection (localStorage, sessionStorage, IndexedDB, openDatabase, addBehavior)
Tests which storage APIs work in this browser.
In one line
Can test which storage tools your browser lets it use
Tests which storage APIs work in this browser.
Support patterns show browser type and settings such as blocked storage. Old APIs (openDatabase, addBehavior) separate engines.
What it can and can't do
What the user does: Nothing. It happens when the page loads.
It can
- Check whether localStorage, sessionStorage and IndexedDB work
- Tell old browsers from new ones
- Guess private mode from the results
- Add the results to a browser fingerprint
It cannot
- See what is stored by other sites
- See what you saved
- Change or delete anything
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 4 | 2010-01-25 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 3.5 | 2009-06-30 | None |
| Safari | Supported | 4 | 2009-06-08 | None |
| Safari on iPhone | Supported | 3.2 | 2010-04-03 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | window.localStorage, sessionStorage, indexedDB, openDatabase, document.body.addBehavior |
| Browser compat keys | api.Window.localStorage |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Script reads the value
- Value joins the fingerprint payload
Data you get
What comes back: Storage feature detection (localStorage, sessionStorage, IndexedDB, openDatabase, addBehavior)
Shape: object
How often: static
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
localStorage | boolean | None | Not listed | Not listed |
sessionStorage | boolean | None | Not listed | Not listed |
indexedDb | boolean | None | Not listed | Not listed |
openDatabase | boolean | None | Not listed | Not listed |
addBehavior | boolean | None | Not listed | Not listed |
Technical limits
- Only presence, not stored data
The story
What it is
A page tests which storage tools your browser supports, such as localStorage, IndexedDB and old add-ons.
For you
You never see it. The page tries each storage type, then picks one that works. It also learns a bit about your browser and any privacy settings.
For makers
Makers use it so sites do not break when a browser blocks storage. The pattern of what works also helps tell browsers and privacy modes apart, which fingerprinting scripts like.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A browser game tests if it can save progress, and warns you if private mode blocks it. | None named |
| shopping | A store tests cookies and storage before it builds your cart, and shows a warning if they are off. | None named |
| security | A fraud service notes that a browser says it supports old Internet Explorer storage tricks, which is a sign of a faked identity. | None named |
| ads | A fingerprint script builds a profile from which storage tools work and which fail. | None named |
| analytics | A site checks if storage works so it can choose between cookies and a fallback for counting visits. | Google Analytics |
| productivity | A web app falls back to a server copy if local storage is off. | None named |
Risks
- Fingerprint clue
- Reveals privacy settings
Good uses and abuse
Legitimate uses
- Fallbacks
Known abuse
- Fingerprint input
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): sessionStorage, localStorage, indexedDb, addBehavior, openDatabase.
Related capabilities
Related
- APFC / DNA device fingerprint (abuse prevention features). Can collect about 48 device traits and send them in secret with later requests
Sources
How well checked: Based on official documentation.