history.length is a fingerprint only in a narrow sense: it is the number of entries in the current tab's session history, and a browser launched fresh onto a page reads 1. One visit at 1 means nothing. A visitor who reads 1 on every visit for a month is a browser that is recreated or started by a script each time. Our engine shifts the starting number per profile, and every navigation still moves it from there.

What history.length counts

Each tab keeps a list of the pages it has shown, which is what the back button walks through. history.length is the length of that list, including the current page. It covers one tab and gives a count, never addresses, so it reveals no browsing history. Opening a link in a new tab starts a new list at 1. Navigating within a tab adds an entry, and so does a single-page app calling history.pushState when its route changes. Chrome caps the list at 50 entries.

So the number tells a page roughly how deep into a session the visitor is. A person who opened a new tab, typed a search, clicked a result and then clicked through to a product page arrives at that product page with a few entries behind them. A browser that was started with the product page's address on its command line arrives with none.

Why 1 on every visit is the signal

A real person reads 1 sometimes: a link opened in a new tab, a bookmark in a fresh window. What a real person does not do is read 1 every time. Their tabs have history, because they got to the page by browsing.

A freshly launched profile reads 1 every time, because every launch opens a tab directly onto its start page. That is true of an automated browser started by a script, and of an anti-detect profile opened onto the site that matters. A site that records the value on each visit can see the pattern without any other help. The comment in our engine code puts it this way: a page that reads 1 on every visit for a month has learned that the profile is recreated, or automated, or both.

It is a weak signal by itself, and we treat it as one. It is also free to read, takes one property access and needs no permission, which is why it is worth getting right.

Every profile is drawn from one real computer, not from separate listsIn Mosaic: Machines that exist. GPU, screen, CPU and fonts from one real device. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: Machines that exist

The first fix pinned it, and that was worse

The obvious change is to return a believable number instead. Our first version of the change did that: the engine answered history.length with the value the profile claimed.

That broke the one thing the property must do, which is grow. Navigate, and the real list gets longer while the answer stays the same. A page can test it in three lines:

const a = history.length
history.pushState({}, '')
history.length === a   // true only on a browser that pinned it

On every real browser that comparison is false. A browser whose history does not grow when it navigates is far stranger than one that started at 1, so the pin traded a weak signal for a certain one. It is the same class of fault as our geolocation spoof that answered only once: the first reading looks right, and the second one gives it away. The question that finds both is whether the value still behaves after you touch it.

Shift the base instead

Tesseract Chrome, our Chromium build, now makes the claim an offset. The engine still asks Chromium for the real length. If the profile carries a claimed base, a fresh tab reports the base, and each push, replace or navigation moves the answer exactly as far as the real list moved. With a base of 3, the start page reads 3, the next navigation reads 4, and the pushState test above comes back false as it does everywhere else.

The base comes from the profile's own seed: a number from 2 to 5, the same on every launch of that profile and different across profiles. Small, because a real visitor's tab rarely has a long history before reaching a given page, and stable, because a profile whose starting depth changed at random every launch would be its own odd pattern.

The value is changed inside the engine, not by a script injected into the page, so every frame of the page sees the same number. Why we do every fingerprint value that way is in why we change fingerprints inside the engine.

What it does not do

The offset changes the number and nothing else. It does not create pages behind the start page. Those entries do not exist, so there is nothing for the back button to return to at the start of a session, as on any tab opened onto its first page. A page could test for that by calling history.back() and checking whether it is still there afterwards. On a real visitor with real history, that test sends them away from the page, which is a price we expect few sites to pay for one weak signal.

And it is one value among many. The browser fingerprint entry lists what else a page reads, and the values every profile inherited from this Mac shows what goes wrong when a value is left identical across profiles.