Bug 220495

Summary: Consider emptying navigator.plugins and navigator.mimeTypes
Product: WebKit Reporter: Anne van Kesteren <annevk>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: achristensen, ahmad.saleem792, beidson, bfulgham, cdumez, d, ggaren, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Anne van Kesteren 2021-01-09 00:17:46 PST
In Firefox these return empty arrays and it would be nice if Safari were to follow suit now that plugins are removed. (Safari still seems to return something for PDF.)

See also https://github.com/whatwg/html/issues/6003.
Comment 1 Radar WebKit Bug Importer 2021-01-16 00:18:12 PST
<rdar://problem/73276215>
Comment 2 Alex Christensen 2021-01-20 17:41:01 PST
Chrome canary seems to also have pdf-related things.  I suspect that they'll run into the compatibility issues that Ryosuke mentioned in GitHub, but when the time comes that they do it and find no compatibility issues I have nothing against trying.
Comment 3 Domenic Denicola 2021-07-13 10:55:35 PDT
We've updated the spec to now instead have a hard-coded lists of plugins (either 0 or 5) for web compatibility, with the idea that all browsers have those 5 plugins. We've also added navigator.pdfViewerSupported as a boolean for simpler feature detection going forward.

* Spec PR: https://github.com/whatwg/html/pull/6738
* New spec: https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewing-support
* Tests: https://github.com/web-platform-tests/wpt/pull/29559 (not yet reviewed/merged)
Comment 4 Ahmad Saleem 2022-06-30 10:10:17 PDT
Safari is failing these in WPT test cases - https://wpt.fyi/results/html/webappapis/system-state-and-capabilities/the-navigator-object/plugins-and-mimetypes.html?label=master&label=experimental&aligned&q=navigator

Can we align with other browsers? It can be used as potential fingerprinting.
Comment 5 Brent Fulgham 2022-09-29 14:16:57 PDT
This work (to match spec) is covered under Bug 245396, so I'm going to dupe there.

*** This bug has been marked as a duplicate of bug 245396 ***