02 · Browser · C++ patches on Firefox
Change how the picture is drawn, not what is read back.
Skulk's browser is Firefox, through the open-source Camoufox build, with eight C++ patches of its own on top. Each one gives a profile a signal that is its own and stays the same.
- C++
- Firefox 158
- Camoufox
- Python tooling
- GitHub Actions
- Ed25519
Try it
Pick a profile. Read the canvas back.
Try it: same words, different pixels
a browser sketch of the idea, not the patch itself
Read back from the canvas
········
It looks identical to the eye. The number says it is not.
01
The problem
Two profiles on one Mac draw the same pixels.
A page can draw text on a hidden canvas and read the pixels back. The result depends on the machine, so it works as a serial number. Every profile on one computer gets the same number, which links them.
The usual fix adds random noise when the page reads the pixels. Test sites catch that: the picture changes on every read, and pixels the page wrote itself come back wrong.
02
The fix
Move the text a fraction of a pixel. Leave readback exact.
Skulk's canvas patch draws text between 0.02 and 0.12 of a pixel off, and a fraction of a percent larger. Glyph edges blend a little differently, so the pixels differ from profile to profile.
The amounts come from one number drawn once per profile, so the same profile reads back the same pixels on every read and in every session. Everything with a known right answer stays exact: solid fills, shapes, images, text measurement, and pixels the page wrote itself.
- Per profile
- One seed, drawn once.
- Stable
- Same pixels on every read.
- Exact where it can be checked
- Fills, shapes, images, measureText.
03
Same rule, three more signals
WebGL, audio and fonts follow the profile too.
WebGL: where a vertex shader is handed to the graphics driver, the patch nudges the final position sideways by 0.008 to 0.03 of a pixel. Audio: the compressor works with a threshold a few thousandths of a decibel off. Both use the same per-profile seed.
Fonts: a Windows identity running on a Mac was missing font names every real Windows Firefox has, although the files were there. A patch maps those names to the right family.
04
Shipping
A 2.4 GB engine, cut down to what one identity needs.
The built engine is 2.4 GB, and 2 GB of that is fonts: it carries the fonts of macOS, Windows and Linux so any identity shows the right ones. A tool splits it into a base and one font pack per system.
A profile downloads the 316 MB base and only its own pack. A pack that did not change between two versions is copied from the one already installed instead of downloaded again.
- Base
- 316 MB download.
- Windows fonts
- 157 MB.
- macOS fonts
- 456 MB.
- Linux fonts
- 78 MB.
All eight patches
What each one does, and how far it is proven.
Camera
A profile's own picture or clip as its webcam, with fresh sensor noise on every frame.
Verified in a built engineCanvas
Text drawn a fraction of a pixel off, per profile, identical on every read.
Written, not yet verifiedWebGL
Shader output nudged by a per-profile amount; flat shapes on pixel edges stay exact.
Written, not yet verifiedAudio
Compressor threshold a few thousandths of a decibel off, per profile.
Written, not yet verifiedFonts
Windows font names resolve on macOS and Linux for a Windows identity.
Written, not yet verifiedAndroid
Pointer, orientation and system font of a phone, for an Android identity.
Written, not yet verifiedLocation prompt
A site has to ask before it gets a location, as in any real Firefox.
Written, not yet verifiedMicrophone
A microphone that reports what a real one does, with quiet room tone instead of silence.
Written, not yet verified
“Written” means the patch applies cleanly and its unit tests pass. It becomes “verified” only once a full engine is built with it and the result is measured in a running browser.
Next · 03
The server
Accounts, signed check-ins and resumable downloads on Next.js 16, Prisma and Better Auth.
