Skip to content
All fingerprint checks
Native function integrity

window.close is the browser's own function, not a wrapper

Pim· Clearcote Research 2 min readCheck id window-close-native-integrity

window.close stringifies in exactly the native-code form this engine emits for its own builtins.

What a detector infers

A deployed commercial agent spends an entire signal on this one function and nothing else: if window.close is undefined it reports a failure code, and otherwise it puts window.close.toString() — the function's complete source text — on the wire verbatim. Two lines of collector for one string, which is a strong statement about how much it expects that string to be worth. The interesting part is which function it chose.

This audit already stringifies a long list of natives, but that list is organised around the surfaces a fingerprint spoof rewrites — canvas, WebGL, permissions, the iframe accessors — plus the language builtins it rewrites them with, because those are where the effort goes. window.close belongs to neither group. Nothing about hardening a fingerprint suggests it needs attention, while automation harnesses, popup helpers and page-teardown shims wrap it as a matter of course.

That combination — routinely wrapped, never audited — is what makes it a good collector target. And because the value transmitted is the source text rather than a pass/fail bit, a wrapper is not something the server has to infer: it arrives written out, ready to read. The check uses the same engine-derived native template the rest of the integrity group relies on, so a bound or re-wrapped function is caught even when it still renders a native-code body.

How to resolve it

Leave window.close alone, or replace it somewhere that yields a genuine native binding rather than a JavaScript wrapper. It sits outside what a fingerprint profile normally hardens, which is the reason it is collected — and its whole source text travels, so any wrapper is legible in full rather than merely detectable.

How automation gets caught, layer by layer

Nearby checks in Native function integrity

See all 15 checks in Native function integrity
Who builds this test

Clearcote is a browser built for fingerprint coherence

It is a Chromium fork, maintained by the same people who wrote this reference. It ships as a compiled browser rather than as a stealth script injected into someone else's — which is a description of how it is built, and is not an argument about how it behaves on this check.

This audit takes no position on how Clearcote scores on Native function integrity checks, on this one, or anywhere else. It has no baseline corpus of other people's fingerprints to rank you against and no vendor scoreboard — nearly every check is self-referential, asking one browser the same question through two independent APIs and reporting whether both answers can be true at once. It runs identically on any browser, including ours. Run it on yours and read the result yourself.

See the other checks in Native function integrity — the family window-close-native-integrity belongs to.