Skip to content

Commit

Permalink
Restore navigator.plugins and navigator.mimeTypes as PDF-focused
Browse files Browse the repository at this point in the history
This addresses the discussion starting at whatwg#6003 (comment).

It ensures browsers only vary on a single boolean, "PDF viewer supported". Then, it:

* Standardizes a new navigator.pdfViewerSupported property which exposes that boolean directly.
* Makes the legacy navigator.plugins and navigator.mimeTypes APIs expose a uniform set of Plugin and MimeType objects, across every browser, in one of two configurations (depending on the PDF viewer supported boolean).
* Gets rid of the generic plugin path in navigation, instead replacing it with specific paths for application/pdf and text/pdf which are tied to the PDF viewer supported boolean.

Closes whatwg#6317 since that idea is no longer possible in this framework. Helps with whatwg#6003.
  • Loading branch information
domenic authored Jul 13, 2021
1 parent 181f72a commit 6770de4
Showing 1 changed file with 308 additions and 108 deletions.
Loading

0 comments on commit 6770de4

Please sign in to comment.