Bug 245847 - Remove plugin features unrelated to PDF support
Summary: Remove plugin features unrelated to PDF support
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-29 14:23 PDT by Brent Fulgham
Modified: 2022-10-06 14:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2022-09-29 14:23:38 PDT
Now that all NPAPI plugin features have been removed, the only reason for 'navigator.plugin' to exist is to support websites checking for PDF support.

The HTML spec was updated last year to 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)

The hard-coded list is being worked on in Bug 245396.

To simplify that work, this patch removes the deprecated code involved in supporting non-PDF plugins.
Comment 1 Radar WebKit Bug Importer 2022-10-06 14:24:18 PDT
<rdar://problem/100870366>