PDF viewer enabled
Whether the browser shows PDFs inline instead of downloading them.
In one line
Can see if your browser shows PDFs inline instead of downloading them
Whether the browser shows PDFs inline instead of downloading them.
A single boolean that replaced plugin enumeration. False on some mobile browsers and on users who disabled the viewer. Low entropy but common in bot checks.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Check one yes or no setting
- Decide to embed a PDF or offer a download link
- Use it with other checks to spot bots
It cannot
- See which PDF files you opened
- See which other plugins you have
- Learn much; it is a single yes or no
- Change your PDF setting
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 94 | 2021-09-21 | None |
| Edge | Supported | 94 | 2021-09-24 | None |
| Firefox | Supported | 99 | 2022-04-05 | None |
| Safari | Supported | 16.4 | 2023-03-27 | None |
| Safari on iPhone | Supported | 16.4 | 2023-03-27 | Safari iOS true |
| Chrome on Android | Supported | 94 | 2021-09-21 | false on Android Chrome by default |
| Samsung Internet | Supported | 17.0 | 2022-05-04 | None |
How a site asks for it
| API | navigator.pdfViewerEnabled |
| Browser compat keys | api.Navigator.pdfViewerEnabled |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
pdfViewerEnabled | boolean | None | true or false | Not listed |
Technical limits
- One bit only
The story
What it is
A yes or no: does your browser show PDF files inside the page instead of downloading them?
For you
You never see it asked. It only decides whether a PDF link opens right in your tab or downloads. A site can also see the answer, but it tells little about you.
For makers
It is one yes or no flag, so it is a weak clue. Bot defence teams include it because headless browsers and odd setups often answer differently. Some sites use it to choose between an inline viewer and a download button.
Where you see it
| Type | Example | Apps |
|---|---|---|
| productivity | A document site shows a Preview button when your browser can display PDFs, and a Download button when it cannot. | None named |
| shopping | A shop offers a size guide as an inline PDF only if the browser can show it. | None named |
| banking | A bank statement page opens a PDF in a tab on desktop and downloads it on a phone that cannot show it. | None named |
| security | A bot defence tool notices a visitor with no PDF viewer and no plugins, and raises the risk score. | DataDome |
| education | An online course shows reading material in the page for browsers that support PDFs. | None named |
| analytics | A fingerprinting library adds the flag to a device profile. | FingerprintJS |
Risks
- Very low value alone
- Part of a bigger profile
What the platform says
- MDN: Navigator.pdfViewerEnabled. Docs describe it as a simple flag that replaced the old plugin list.
Good uses and abuse
Legitimate uses
- Offer PDF vs download
Known abuse
- Headless-browser tell (false)
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 0.5 | Rough identifying entropy, when known |
History
- 2021-09, Chrome 94: Shipped; plugins list hardcoded to 5 PDF entries
Related capabilities
Related
- navigator.plugins and mimeTypes. Can see a fixed list of 5 PDF viewers, so it no longer tells you apart
Sources
How well checked: Based on official documentation.