# Why does Chrome show 5 PDF plugins in navigator.plugins?

> The HTML spec fixes navigator.plugins to five PDF viewer entries, each with two MIME types. We once rebuilt that list in JavaScript and got it wrong.

Source: https://mosaicbrowser.com/blog/five-pdf-plugins

## Why every Chrome lists the same five PDF plugins

The HTML spec fixes navigator.plugins to five PDF viewer entries, each with two MIME types. We once rebuilt that list in JavaScript and got it wrong.

![5: Five PDF viewers, the same in every desktop Chrome, beside a screenshot: mosaic settings showing the installed Tesseract Chrome engine and its version](https://mosaicbrowser.com/covers/five-pdf-plugins.webp)

Chrome shows five PDF plugins because the HTML standard tells it to. Any browser that can display a PDF inline has to answer `navigator.plugins` with the same five entries, whatever is actually installed, so every desktop Chrome lists them, and so does any other browser that follows the spec. We once replaced that list with our own copy in JavaScript. The real list was already the right answer, and our copy was the thing a scanner could see.

## What the spec fixes

The HTML standard's section on `navigator.plugins` no longer lets a browser describe its real plugins. If the browser supports viewing PDFs inline, the list is exactly five `Plugin` objects, named:

- PDF Viewer
- Chrome PDF Viewer
- Chromium PDF Viewer
- Microsoft Edge PDF Viewer
- WebKit built-in PDF

Each has the description "Portable Document Format" and the filename `internal-pdf-viewer`. Each holds two `MimeType` objects, `application/pdf` and `text/pdf`, both with the suffix `pdf`, and `navigator.mimeTypes` lists those same two. If the browser cannot show PDFs inline, both lists are empty. A separate boolean, `navigator.pdfViewerEnabled`, says which of the two cases you are in.

There is one viewer behind all five names. The names exist because old pages sniffed for a PDF plugin by its product name, and a fixed list covering every engine's name keeps those pages working. The other effect is the one that matters for fingerprinting: when every browser says the same thing, the list carries almost no information. In the Flash and Java years the plugin list was one of the richest fingerprints a page could read. Freezing it removed that.

## Where the five entries still say something

A list everyone shares is only useful to a detector when it is missing or malformed. Three cases do that.

An empty list. In our measurements the list differed from a real Chrome's only when the browser ran headless. A headed engine reports the five with nothing done to it.

A contradiction. `pdfViewerEnabled` and the list have to agree. `true` with an empty list, or `false` with five entries, is a combination no stock browser produces.

A rebuilt list. This is the one we shipped.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## How we got it wrong

Before the engine did this work inside the engine, an injected script changed values in the page, and one of its overrides rebuilt `navigator.plugins`. Each synthetic `Plugin` carried a name, a description, a filename and a `length` of 2. It carried no indexed `MimeType` entries at all. So a page that walked `plugin[0]`, `plugin[1]` read `undefined` for the type, the suffixes and the description, where a real browser hands back two full objects.

Pixelscan serialises exactly that walk (it is also the scanner that calls a stock Chrome masked [3 times in 20](https://mosaicbrowser.com/blog/pixelscan-masks-stock-chrome), so we compare against stock before reading it), and side by side with a stock Chrome the difference took one line to see:

```
ours   PDF Viewer::Portable Document Format::internal-pdf-viewer::__~~,~~
stock  PDF Viewer::...::__application/pdf~pdf~Portable Document Format,...

```

The empty `~~,~~` is two MIME types with nothing in them. No browser on earth has produced that string, so the override did not hide the profile among Chromes. It marked it as something else. And there was nothing to gain from it in the first place, because the value it imitated was a constant: the same five entries we were copying were already there, correct, in the engine underneath.

So the override was deleted, not repaired. The comment left in its place in `inject.ts` reads: "Rebuilding a constant is all risk and no gain."

## The rule that came out of it

The plugin list was one of four in the same audit. `enumerateDevices` built plain objects instead of `MediaDeviceInfo`, `getBattery` resolved with a literal carrying eleven own keys where a real `BatteryManager` has none, and `getClientRects` returned a plain `Array` with a function called `item` hung on it. Each was three tells at once: the wrong `Object.prototype.toString` tag, a failed `instanceof`, and own properties where the real class has getters on its prototype.

What we wrote down: if the engine already produces the object, change what it says, never what it is. And if what it says is already right, as with the plugins, leave it alone. That is also why our engine changes values inside the engine now and injects no spoofing JavaScript at all ([why we change fingerprints inside the engine](https://mosaicbrowser.com/blog/cpp-not-javascript) has the rest of that audit).

## What Mosaic does with the PDF bit

The list itself is untouched. Tesseract Chrome, our engine, builds the five entries exactly as stock Chromium does, while the values a profile does change are [drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints). One change in the engine lets a profile set `navigator.pdfViewerEnabled` from a launch switch, because a build with the PDF component stripped answers `false`, and that one bit says what kind of Chrome it is. Its own description says it is there "for completeness rather than entropy": every real desktop Chrome says `true`, so every profile Mosaic draws says `true`, and the switch never contradicts the five entries next to it.

To see yours, open the console on any page and run `[...navigator.plugins].map(p => p.name + ' ' + p.length)`. A desktop Chrome prints the five names, each with a 2. Anything else, an empty list or a plugin whose `[0]` is `undefined`, means something rewrote or removed it, and a replaced API is what CreepJS counts as a lie ([what a CreepJS lie is](https://mosaicbrowser.com/blog/what-a-creepjs-lie-is)).

## Questions

### Why does Chrome show 5 PDF plugins?

Because the HTML standard says so. A browser that can show PDFs inline must report exactly five plugins, named PDF Viewer, Chrome PDF Viewer, Chromium PDF Viewer, Microsoft Edge PDF Viewer and WebKit built-in PDF, whatever is really installed.

### Are the five PDF plugins real?

No. There is one built-in PDF viewer. The five names are a fixed list the spec chose so old pages that sniff for a PDF plugin by name keep working, and so the list stops being a fingerprint.

### Can a site fingerprint me from navigator.plugins?

Hardly, on a normal desktop Chrome, because everyone's list is the same. It becomes a signal when the list is empty, when navigator.pdfViewerEnabled disagrees with it, or when a spoofing tool rebuilds the objects and gets their shape wrong.

### Why are there two MIME types on each plugin?

The spec gives each of the five plugins the same two MIME types, application/pdf and text/pdf, with the suffix pdf. navigator.mimeTypes lists those two.

## Related

[Why we change fingerprints in the engine, not in JavaScript](https://mosaicbrowser.com/blog/cpp-not-javascript): A JavaScript spoof is one realm deep. An iframe read the real source of 33 of our replaced functions; the same values set inside the engine agree everywhere.

[Pixelscan calls a stock Chrome masked 3 times in 20](https://mosaicbrowser.com/blog/pixelscan-masks-stock-chrome): A Pixelscan false positive, measured: an untouched Google Chrome read 'Masking detected' on 3 of 20 runs. Our fresh profiles read it once in 74.

[What a CreepJS lie is, and why stock Chrome has none](https://mosaicbrowser.com/blog/what-a-creepjs-lie-is): CreepJS lies detected means an API behaved unlike the native one: wrong toString, wrong descriptor, or a worker that disagrees. Stock Chrome has none.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.









[deviceMemory and Sec-CH-Device-Memory are one number read twice](https://mosaicbrowser.com/blog/sec-ch-device-memory-header): Chrome builds the Sec-CH-Device-Memory header from the same function as navigator.deviceMemory, so a change on the script side alone sends the real figure.

[The values every profile inherited from this Mac](https://mosaicbrowser.com/blog/values-inherited-from-the-host): A browser fingerprint value inherited from the host is identical across two unrelated profiles and equal to the computer. That test found dark mode and more.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
