Make your browser dirty for testing BleachBit and other privacy tools. Each exercise writes real browser data.
Server-set (HttpOnly) β the Worker sends real Set-Cookie
response headers so cookies land in cookies.sqlite and survive page reloads.
Browsers hard-cap cookies per origin at ~150β180; extras are silently dropped.
JS-set cookies are also written for comparison but are limited to the same cap.
Writes entries to localStorage. BleachBit can clean this via the
browser's storage APIs. Handy for verifying that localStorage items appear
and are removed after cleaning.
Writes entries to sessionStorage. Lives only for the current tab session β
cleared automatically on tab close, but present in the browser's memory while open.
Creates an IndexedDB database and writes records. Browsers store IndexedDB data in LevelDB (Chrome) or SQLite (Firefox) on disk.
Uses the Service Worker Cache API to store synthetic responses on disk. Tests whether BleachBit clears cache storage (separate from HTTP cache).
Opens popular tracker-heavy sites in separate tabs. Each visit deposits cookies, fingerprinting scripts, and cached resources β a realistic "dirty browser" state. Pop-up blocker must allow this site, or click the links individually below.
Pushes fake URL entries into history.pushState. This populates
the browser's in-memory session history, though not the persistent disk history
(for that, visit the tracker tabs).
Submit these forms to teach the browser your fake credentials and address.
Firefox stores form history in formhistory.sqlite and saved logins in
logins.json / key4.db. Chrome uses its own encrypted store.
Fill and submit each section β the browser will offer to save the data.
Search / text autocomplete (formhistory.sqlite)
Address autofill
Login & password (browser password manager)
Generates files with Content-Disposition: attachment so the browser records a download history entry.
Text files come from /api/download/; binary files are 1 MiB deterministic payloads from
/api/download-bin/. Useful for checking Chrome's History DB and Firefox's downloads.sqlite.
Writes files via navigator.storage.getDirectory(). Chrome persists these under
Default/File System/; the first file is >64 KiB so a real blob file is
forced into Default/blob_storage/. Status is verified by re-listing the
OPFS root and summing file sizes.
Creates multi-megabyte Blobs with object URLs, fetches each URL back and
byte-verifies the payload, persists the largest through IndexedDB (lands in a real
*.indexeddb.blob file under Default/IndexedDB/), and enqueues
one as a real download. Chrome also creates Default/blob_storage/.
Plays a bundled 3-second WebM clip to completion (muted), then a short WAV beep.
Exercises the media decode pipeline: media cache, VideoDecodeStats, and
related per-origin media state.
Calls navigator.storage.persist() and reports the grant result. When granted,
Chrome flips a site-preference bit in Default/Preferences and storage becomes
non-evictable.
Fetches /nel, which answers with NEL, Report-To, and
Reporting-Endpoints headers. Chromium then stores a NEL policy for this origin
in the profile's Network/Reporting and NEL database and batch-POSTs
application/reports+json reports to /api/reports. The policy reports
100% of requests (success_fraction=1.0), so reports keep flowing after enrollment.
Firefox and Safari ignore the headers.
Runs all exercises at once: cookies, localStorage, sessionStorage, IndexedDB, Cache API, history, OPFS, blobs, persistent storage, media, and NEL enrollment. Does not open tracker tabs (do that separately).