Canvas noise stays consistent across reads only if it is keyed on what was drawn, not where it landed. Our first version keyed each change on the pixel's coordinates: every read of a canvas agreed with every other read, and the same drawing placed twice on one canvas still came back different. Real browsers never do that. Keyed on the pixel's colour instead, and kept sparse, it passed.

The four-line test position-keyed noise fails

Canvas noise exists so each profile's canvas fingerprint differs from the real machine's and from every other profile's. The obvious way to keep it stable is to make the change a function of the pixel, so reading the canvas twice returns the same bytes. We did that, keyed on the pixel's position, and the obvious checks passed:

same region read twice      0 bytes different
toDataURL stable            true

Then we drew the same text and rectangle twice on one canvas, at y=0 and y=60, and compared the two regions:

identical regions differ    76 bytes      (a real browser: 0)

A GPU renders identical input to identical pixels, wherever it sits. With position-keyed noise, the two copies sit at different coordinates, so they get different stamps. A page can find that in four lines of script.

Why Pixelscan looked random

This was what Pixelscan's fingerprint card was reading, and it explained a verdict that had seemed arbitrary. The check fires only when a stamped pixel happens to land inside a compared region. Four fresh profiles came back consistent, inconsistent, consistent, inconsistent. One profile, bisected field by field, passed twice with canvas noise off and failed six times with it on. Audio, client rects and everything else made no difference.

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

Canvas noise consistent across reads: keyed on colour, and sparse

So the stamp now depends on the colour. Every fully opaque pixel of a given colour gets the same low bits, chosen once per profile from its seed. The same content is identical wherever it is drawn, through toDataURL, getImageData, a sub-rectangle or a second canvas, and still different from what the bare machine would produce.

The first colour-keyed version changed every opaque pixel. It fixed the contradiction and then failed Pixelscan five times out of five, worse than the position-keyed noise, which had failed about half the time. Touching every pixel does not look like a rounding difference between two GPUs; it looks like a filter laid over the image. Now only about one distinct colour in 32 is touched. Eight fresh profiles afterwards:

8/8 pass    8 distinct canvas hashes    8 distinct audio hashes

More noise is not safer. The amount has to stay inside what the same hardware could plausibly produce, because the goal is a canvas a detector cannot tell from a real one, not one it cannot recognise.

Three older rules made the colour-keyed version safe to write. We never write to the page's own canvas; we draw a copy and encode from that. We stamp bits rather than flipping them, because a flip applied twice cancels out when a page decodes its own data URL onto a second canvas, and a stamp applied twice changes nothing. And only fully opaque pixels are touched, because transparent colour channels do not survive PNG encoding.

Every route out of the canvas

A canvas has four ways out: getImageData, toDataURL, toBlob and OffscreenCanvas.convertToBlob. MDN describes toBlob as producing a PNG by default, the same format toDataURL gives, so a page can hash both and expect one answer. We compared our engine against a stock Chrome on the same machine, hashing the encoded files:

route                                stock      ours
canvas.toDataURL()                   eff69e17   ef122151
canvas.toBlob()                      eff69e17   eff69e17
convertToBlob()  page                eff69e17   eff69e17
convertToBlob()  worker              eff69e17   ef122151

Two of our routes were byte-identical to stock Chrome. On the main thread Chromium encodes PNG through a path that reads the raw pixels and never passes where our stamp lived. Our engine now stamps once, where the pixels are first acquired, into a buffer the engine owns, so every route encodes the same file. That is the actual requirement: not that each route is noised, but that all four agree, as they do in a stock browser.

When one seed fails

One more finding, to save someone an afternoon. A single profile failed Pixelscan every time while fresh ones passed, and the cause turned out to be its seed: put that seed on a passing profile and it failed; give it a new seed and it passed. With the profile's canvas noise turned off, it passed. Yet its noise had every property above, 0 bytes between offsets and re-reads, and it touched 0.30% of opaque pixels, mid-range for the six seeds we sampled.

Fourteen freshly drawn seeds on one profile came back 14 passes and no failures. So a lone Pixelscan failure is a question about that profile's seed, not the engine; checking a fresh profile settles which. Turning canvas noise off for that one profile works, at the cost of its canvas entropy. We did not soften the noise for everyone on that evidence. The last two changes to its amount made on a theory were both wrong. More on what Pixelscan reads is in Pixelscan's inconsistent fingerprint verdict.

A Mosaic profile fingerprint showing which surfaces are noised
Canvas, WebGL, audio and client rects, noised from one seed

All of this happens inside the engine, which is the point of changing fingerprints in the engine, not in JavaScript: a page script overriding toDataURL cannot reach the worker's convertToBlob, and a change in the engine can. Our changes to Chromium are described on the engine page.

Sources

  1. MDN: HTMLCanvasElement.toBlob(), read November 2, 2026