Bug 220495 - Consider emptying navigator.plugins and navigator.mimeTypes
Summary: Consider emptying navigator.plugins and navigator.mimeTypes
Status: RESOLVED DUPLICATE of bug 245396
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-09 00:17 PST by Anne van Kesteren
Modified: 2022-09-29 14:16 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***