window.name carry over
A string on the tab that survives page loads and was once used to carry data between sites.
In one line
Can carry a short text string in the tab from one page to the next
A string on the tab that survives page loads and was once used to carry data between sites.
Browsers now clear or partition it on cross-site navigation, so trackers can no longer hand an ID from one site to the next in a tab. Same-site use for session state still works. Large strings (MBs) were a legacy storage trick.
What it can and can't do
What the user does: Nothing. It happens as you click through pages in the same tab.
It can
- Keep a short text string while you move between pages in the tab
- Pass it to the next page, which was once a way to carry data between sites
- Store a tracking ID in it
It cannot
- Pass it reliably between sites, since modern browsers now clear or limit it
- Hold large amounts of data
- Keep it after you close the tab
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | Cleared on cross-site navigation in current versions |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | 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.name = value |
| Browser compat keys | api.Window.name |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Lives with the tab's browsing context |
| How to take it back | Clear site data, browser privacy settings |
| Inside an iframe | Not listed |
Data you get
What comes back: Tab scoped string
Shape: string
How often: any time
No individual data fields. The signal is the access itself.
Technical limits
- Cleared on cross-site top level navigation in current browsers
- Only strings
- No access to another tab's value
The story
What it is
A text string on your tab that survives page loads and was once used to carry data between sites.
For you
You never see it. It is a note stuck to the tab. Modern browsers clear it when you move to a new site, so it matters less than it used to.
For makers
It used to be a trick for carrying an ID from one site to another with no cookies. Browsers now wipe or isolate it across sites. It still works within one site and can carry small state.
Where you see it
| Type | Example | Apps |
|---|---|---|
| ads | An old tracker wrote an ID into the tab name so the next site could read it and link the visits. | None named |
| security | Some login popups use it to pass a result back to the opener on the same site. | None named |
| games | A browser game on one site uses it to hand a score to the next page. | None named |
| shopping | A store carries a short promo code between its own pages through the tab name. | None named |
| analytics | A measurement script keeps a session mark in it to survive reloads. | None named |
| developer | Developers once used it to store data for single page tools before better options existed. | None named |
Risks
- Old tracking trick
- Mostly blocked cross site
Good uses and abuse
Legitimate uses
- Legacy cross-window messaging
Known abuse
- Pass identifiers between sites
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 1 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2020-11, Chrome 88: Chromium started clearing on cross-site navigation (verify milestone)
Related capabilities
Related
- Navigational tracking. Can pass an ID along when you move between sites by link or redirect
Sources
How well checked: Inferred from related behavior.