mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
af5370612f
This implements the new HTML spec for these fields, which now serve hard-coded values, depending on whether or not PDFs are supported. The values were deemed important to maintain web compatibility. The spec can be found in section 8.9.1.6: https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewing-support The web-compat test for this can be found at: https://wpt.live/html/webappapis/system-state-and-capabilities/the-navigator-object/plugins-and-mimetypes.html This patch follows the spec for the PDF plugins if "pdfjs.disabled" is false. It also produces empty plugin arrays if "pdfjs.disabled" is true, as per the spec. Both cases are tested by the wpt.live page. Differential Revision: https://phabricator.services.mozilla.com/D133291
18 lines
620 B
Plaintext
18 lines
620 B
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
[LegacyUnenumerableNamedProperties,
|
|
Exposed=Window]
|
|
interface Plugin {
|
|
readonly attribute DOMString description;
|
|
readonly attribute DOMString filename;
|
|
readonly attribute DOMString name;
|
|
|
|
readonly attribute unsigned long length;
|
|
getter MimeType? item(unsigned long index);
|
|
getter MimeType? namedItem(DOMString name);
|
|
};
|