From 6baabd12dc0d9e832f822372fa9b68f9370a4ca1 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 5 Mar 2021 10:56:39 +0900 Subject: [PATCH] Deprecate NavigatorPlugins, its subfeatures, and related objects https://html.spec.whatwg.org/multipage/obsolete.html#navigatorplugins Related BCD change: https://github.com/mdn/browser-compat-data/pull/9338 --- files/en-us/web/api/mimetype/index.html | 2 +- files/en-us/web/api/mimetypearray/index.html | 2 +- files/en-us/web/api/navigator/index.html | 6 +++--- files/en-us/web/api/navigatorplugins/index.html | 8 ++++---- files/en-us/web/api/navigatorplugins/mimetypes/index.html | 2 +- files/en-us/web/api/navigatorplugins/plugins/index.html | 6 +++--- files/en-us/web/api/plugin/index.html | 4 ++-- files/en-us/web/api/pluginarray/index.html | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/files/en-us/web/api/mimetype/index.html b/files/en-us/web/api/mimetype/index.html index 67ecc3c2d2babaf..ab1fa283c999c0f 100644 --- a/files/en-us/web/api/mimetype/index.html +++ b/files/en-us/web/api/mimetype/index.html @@ -7,7 +7,7 @@ - Plugins - Reference --- -

{{SeeCompatTable}}{{APIRef("HTML DOM")}}

+

{{APIRef("HTML DOM")}}{{deprecated_header}}

The MimeType interface provides contains information about a MIME type associated with a particular plugin. {{domxref("NavigatorPlugins.mimeTypes")}} returns an array of this object.

diff --git a/files/en-us/web/api/mimetypearray/index.html b/files/en-us/web/api/mimetypearray/index.html index 8020ca948ff64c9..7d42c26330858d5 100644 --- a/files/en-us/web/api/mimetypearray/index.html +++ b/files/en-us/web/api/mimetypearray/index.html @@ -7,7 +7,7 @@ - Reference - mimeType --- -

{{SeeCompatTable}}{{APIRef("HTML DOM")}}

+

{{APIRef("HTML DOM")}}{{deprecated_header}}

The MimeTypeArray interface returns an array of {{domxref('MimeType')}} instances, each of which contains information about a supported browser plugins. This object is returned by {{domxref("NavigatorPlugins.mimeTypes")}}.

diff --git a/files/en-us/web/api/navigator/index.html b/files/en-us/web/api/navigator/index.html index 1977e4876f048bd..04a2113c362e7d9 100644 --- a/files/en-us/web/api/navigator/index.html +++ b/files/en-us/web/api/navigator/index.html @@ -37,7 +37,7 @@

Standard properties

Returns a {{domxref("Geolocation")}} object allowing accessing the location of the device.
{{domxref("NavigatorConcurrentHardware.hardwareConcurrency")}} {{readonlyInline}}
Returns the number of logical processor cores available.
-
{{domxref("NavigatorPlugins.javaEnabled")}} {{readonlyInline}}
+
{{domxref("NavigatorPlugins.javaEnabled")}} {{deprecated_inline}}
Returns a {{domxref("Boolean")}} flag indicating whether the host browser is Java-enabled or not.
{{domxref('Navigator.keyboard')}} {{readonlyinline}} {{experimental_inline}}
Returns a {{domxref('Keyboard')}} object which provides access to functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.
@@ -55,13 +55,13 @@

Standard properties

Returns a reference to a {{domxref("MediaDevices")}} object which can then be used to get information about available media devices ({{domxref("MediaDevices.enumerateDevices()")}}), find out what constrainable properties are supported for media on the user's computer and user agent ({{domxref("MediaDevices.getSupportedConstraints()")}}), and to request access to media using {{domxref("MediaDevices.getUserMedia()")}}.
{{domxref("Navigator.mediaSession")}} {{readonlyinline}} {{experimental_inline}}
Returns {{domxref("MediaSession")}} object which can be used to provide metadata that can be used by the browser to present information about the currently-playing media to the user, such as in a global media controls UI.
-
{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}
+
{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{deprecated_inline}}
Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.
{{domxref("NavigatorOnLine.onLine")}} {{readonlyInline}}
Returns a {{domxref("Boolean")}} indicating whether the browser is working online.
{{domxref("Navigator.permissions")}} {{readonlyinline}} {{experimental_inline}}
Returns a {{domxref("Permissions")}} object that can be used to query and update permission status of APIs covered by the Permissions API.
-
{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}
+
{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{deprecated_inline}}
Returns a {{domxref("PluginArray")}} listing the plugins installed in the browser.
{{domxref("Navigator.presentation")}} {{readonlyInline}} {{experimental_inline}}
Returns a reference to the {{domxref("Presentation")}} API.
diff --git a/files/en-us/web/api/navigatorplugins/index.html b/files/en-us/web/api/navigatorplugins/index.html index 8e1f3ea59bd6476..33284bf3312f8a6 100644 --- a/files/en-us/web/api/navigatorplugins/index.html +++ b/files/en-us/web/api/navigatorplugins/index.html @@ -12,16 +12,16 @@ - Plugins - Reference --- -

{{APIRef("HTML DOM")}}{{SeeCompatTable}}

+

{{APIRef("HTML DOM")}}{{deprecated_header}}

The NavigatorPlugins {{Glossary("mixin")}} adds to the {{domxref("Navigator")}} interface methods and properties for discovering and interacting with plugins installed into the browser.

Properties

-
{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{experimental_inline}}
+
{{domxref("NavigatorPlugins.mimeTypes")}} {{readonlyInline}}{{deprecated_inline}}
Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.
-
{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{experimental_inline}}
+
{{domxref("NavigatorPlugins.plugins")}} {{readonlyInline}}{{deprecated_inline}}
Returns a {{domxref("PluginArray")}} listing the plugins installed in the browser.
@@ -30,7 +30,7 @@

Methods

The NavigatorPlugins interface doesn't inherit any methods.

-
{{domxref("NavigatorPlugins.javaEnabled", "NavigatorPlugins.javaEnabled()")}}
+
{{domxref("NavigatorPlugins.javaEnabled", "NavigatorPlugins.javaEnabled()")}}{{deprecated_inline}}
Returns false.
diff --git a/files/en-us/web/api/navigatorplugins/mimetypes/index.html b/files/en-us/web/api/navigatorplugins/mimetypes/index.html index 0032914ac135cad..4fada8ec8e8247c 100644 --- a/files/en-us/web/api/navigatorplugins/mimetypes/index.html +++ b/files/en-us/web/api/navigatorplugins/mimetypes/index.html @@ -6,7 +6,7 @@ - Property - Reference --- -
{{ ApiRef("HTML DOM") }}
+
{{ ApiRef("HTML DOM") }}{{deprecated_header}}

Returns a {{domxref("MimeTypeArray")}} object, which contains a list of {{domxref("MimeType")}} objects representing the MIME types recognized by the browser. diff --git a/files/en-us/web/api/navigatorplugins/plugins/index.html b/files/en-us/web/api/navigatorplugins/plugins/index.html index b5ef704af5ef623..6cc2de50f20c5ff 100644 --- a/files/en-us/web/api/navigatorplugins/plugins/index.html +++ b/files/en-us/web/api/navigatorplugins/plugins/index.html @@ -10,17 +10,17 @@ - Property - Reference --- -

{{APIRef("HTML DOM")}}

+

{{APIRef("HTML DOM")}}{{deprecated_header}}

Returns a {{DOMxRef("PluginArray")}} object, listing the {{DOMxRef("Plugin")}} objects - describing the plugins installed in + describing the plugins installed in the application.

In Firefox 29 and later, enumeration of the navigator.plugins array may be restricted as a privacy measure. Applications that must check for the presence of a browser plugin should query navigator.plugins or - {{DOMxRef("navigator.mimeTypes")}} by exact name instead of enumerating the + {{DOMxRef("NavigatorPlugins.mimeTypes", "navigator.mimeTypes")}} by exact name instead of enumerating the navigator.plugins array and comparing every plugin's name. This privacy change does not disable any plugins; it just hides some plugin names from enumeration.

diff --git a/files/en-us/web/api/plugin/index.html b/files/en-us/web/api/plugin/index.html index 56fda55e3cf2561..c3f56b0a789d7d4 100644 --- a/files/en-us/web/api/plugin/index.html +++ b/files/en-us/web/api/plugin/index.html @@ -9,9 +9,9 @@ - Plug-in - Plugins --- -
{{ApiRef("HTML DOM")}}
+
{{ApiRef("HTML DOM")}}{{deprecated_header}}
-

The Plugin interface provides information about a browser plugin.

+

The Plugin interface provides information about a browser plugin.

Note: Own properties of Plugin objects are no longer enumerable in the latest browser versions.

diff --git a/files/en-us/web/api/pluginarray/index.html b/files/en-us/web/api/pluginarray/index.html index d7168c5b8b9f57c..bdd0d22985b42b5 100644 --- a/files/en-us/web/api/pluginarray/index.html +++ b/files/en-us/web/api/pluginarray/index.html @@ -9,9 +9,9 @@ - NeedsContent - Plugins --- -

{{APIRef("HTML DOM")}}{{SeeCompatTable}}

+

{{APIRef("HTML DOM")}}{{deprecated_header}}

-

The PluginArray interface is used to store a list of {{DOMxRef("Plugin")}} objects describing the available plugins; it's returned by the {{DOMxRef("window.navigator.plugins")}} property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.

+

The PluginArray interface is used to store a list of {{DOMxRef("Plugin")}} objects describing the available plugins; it's returned by the {{DOMxRef("NavigatorPlugins.plugins", "navigator.plugins")}} property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.

Note: Own properties of PluginArray objects are no longer enumerable in the latest browser versions.