JavaScript spoofing detection matters to anyone using a fingerprint tool that works by injecting a script. That script redefines navigator.platform, wraps getParameter on WebGL, adds noise to a canvas, and so on. Every one of those edits is made after the browser has already built the real object, and that order is what a detector exploits.

What JavaScript spoofing detection reads on the object

A real browser property has a shape: it lives on a prototype, its getter has a name like get userAgent, it has a fixed length, and calling toString on it prints [native code]. A replacement written in JavaScript has to copy every detail of that shape, in every place it can be read. Most get one or two wrong. Prototype tampering detection is the family of checks for exactly this, and CreepJS, a public test page, counts the misses as "lies".

We learned it on ourselves. Before our engine moved these values inside the browser itself, we spoofed in JavaScript too, and a diff against a real Chrome found that all 28 of our accessors were anonymous. In Chrome, Object.getOwnPropertyDescriptor(Navigator.prototype, 'userAgent').get.name is "get userAgent". Ours was an empty string. A page could list every override in one loop without calling toString once. The same diff found a hidden global we had named __mosaic__, invisible to Object.keys and plain to Object.getOwnPropertyNames(window).

The fingerprint is changed inside the engine, not painted on topIn Mosaic: Fingerprints set inside the browser. Tesseract Chrome: values set inside, not by a script. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: Fingerprints set inside the browser

A context the script never reached

A page is not one JavaScript world. Iframes, dedicated workers, shared workers and service workers each start with their own copy of navigator and the graphics APIs. A spoof has to arrive in every one of them before the page's first read, and the page decides where to look.

Our own miss: a worker that created a second worker produced an unpatched grandchild. The outer worker read the spoofed renderer and the inner one read the real chip. Once the fix landed, a profile set to Apple M2 Pro on an M4 Max read Apple M2 Pro in the page, in classic and module workers, in a nested worker pair and in a SharedWorker.

Values JavaScript cannot reach

Some answers never pass through a page script. The User-Agent request header, the Sec-CH-UA client hints and the TLS handshake all leave the browser before any page code runs. A script that changes navigator.userAgent and not the header makes the two disagree, and the server sees both. The client hints and TLS fingerprinting entries list what goes out at that layer.

Two spoofs make a third value

The last tell is the most surprising one. Layer a JavaScript spoof over a browser that already changes the same value, and the two do not cancel. They compose into a value neither side meant to produce, which is the kind of contradiction a consistency scanner exists to find. That is why our launcher adds no JavaScript spoof at all when a profile runs on our own engine.

A Mosaic leak test: every surface a site reads, checked from inside the profile page
The leak test reads a profile from inside its own page

How Mosaic handles it

Nothing is spoofed with injected JavaScript on Tesseract Chrome. The fingerprint values are changed inside the engine, so the real property returns the profile's value, in the page, its frames and its workers, with no wrapper to inspect. Mosaic's Detection tests include CreepJS's prototype tampering and proxy detection pages, so you can run the checks above against a profile and read the result yourself. Why we built our own Chromium tells how we got there.