diff --git a/files/en-us/web/api/navigator/index.html b/files/en-us/web/api/navigator/index.html index 82e7e3d570a95bb..1977e4876f048bd 100644 --- a/files/en-us/web/api/navigator/index.html +++ b/files/en-us/web/api/navigator/index.html @@ -57,7 +57,7 @@

Standard properties

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}}
Returns an {{domxref("MimeTypeArray")}} listing the MIME types supported by the browser.
-
{{domxref("Navigator.onLine")}} {{readonlyInline}}
+
{{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.
@@ -65,6 +65,8 @@

Standard properties

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.
+
{{domxref("Navigator.serial")}} {{readonlyInline}}
+
Returns a {{domxref("Serial")}} object, which represents the entry point into the {{domxref("Web Serial API")}} to enable the control of serial ports.
{{domxref("Navigator.serviceWorker")}} {{readonlyInline}}
Returns a {{domxref("ServiceWorkerContainer")}} object, which provides access to registration, removal, upgrade, and communication with the {{domxref("ServiceWorker")}} objects for the associated document.
{{domxref("NavigatorStorage.storage")}} {{readonlyinline}}
@@ -76,7 +78,7 @@

Standard properties

{{domxref("Navigator.webdriver")}} {{readonlyInline}} {{experimental_inline}}
Indicates whether the user agent is controlled by automation.
{{domxref("Navigator.xr")}} {{readonlyInline}} {{experimental_inline}}
-
Returns {{domxref("XR")}} object, which represents the entry point into the WebXR API.
+
Returns {{domxref("XRSystem")}} object, which represents the entry point into the WebXR API.

Non-standard properties

diff --git a/files/en-us/web/api/navigator/serial/index.html b/files/en-us/web/api/navigator/serial/index.html new file mode 100644 index 000000000000000..9d1358b5d770b59 --- /dev/null +++ b/files/en-us/web/api/navigator/serial/index.html @@ -0,0 +1,61 @@ +--- +title: Navigator.serial +slug: Web/API/Navigator/serial +tags: + - API + - Property + - Reference + - serial + - Navigator +--- +
{{APIRef("HTML DOM")}}
+ +

The serial read-only property of the {{domxref("Navigator")}} interface returns a {{domxref("Serial")}} object which represents the entry point into the {{domxref("Web Serial API")}}.

+ +

When getting, the same instance of the {{domxref("Serial")}} object will always be returned.

+ +

Syntax

+ +
var serialObj = Navigator.serial;
+ +

Value

+

A {{domxref("Serial")}} object.

+ +

Examples

+ +

The following example uses the getPorts() method to initialize a list of available ports.

+ +
navigator.serial.getPorts()
+.then((ports) => {
+  // Initialize the list of available ports with `ports` on page load.
+});
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Serial API','#extensions-to-the-navigator-interface','Extensions to the Navigator Interface')}}{{Spec2('Web Serial API')}}Initial definition.
+ +

Browser compatibility

+ + + +

{{Compat("api.Navigator.serial")}}

+ +

See also

+ + diff --git a/files/en-us/web/api/workernavigator/index.html b/files/en-us/web/api/workernavigator/index.html index 7b35230495eaece..b9fe20d449c0fd3 100644 --- a/files/en-us/web/api/workernavigator/index.html +++ b/files/en-us/web/api/workernavigator/index.html @@ -25,7 +25,9 @@

Properties

Returns a {{DOMxRef("LockManager")}} object which provides methods for requesting a new {{DOMxRef('Lock')}} object and querying for an existing Lock object.
{{DOMxRef("WorkerNavigator.permissions")}} {{Experimental_Inline}}{{ReadOnlyInline}}
Returns a {{DOMxRef("Permissions")}} object that can be used to query and update permission status of APIs covered by the Permissions API.
-
{{DOMxRef("Navigator.storage")}}{{ReadOnlyInline}} {{experimental_inline}}
+
{{domxref("WorkerNavigator.serial")}} {{readonlyInline}}
+
Returns a {{domxref("Serial")}} object, which represents the entry point into the {{domxref("Web Serial API")}} to enable the control of serial ports.
+
{{DOMxRef("NavigatorStorage.storage")}}{{ReadOnlyInline}} {{experimental_inline}}
Returns a {{DOMxRef('StorageManager')}} interface for managing persistance permissions and estimating available storage.
@@ -85,6 +87,5 @@

See also

- diff --git a/files/en-us/web/api/workernavigator/serial/index.html b/files/en-us/web/api/workernavigator/serial/index.html new file mode 100644 index 000000000000000..aa94063f5fd06ff --- /dev/null +++ b/files/en-us/web/api/workernavigator/serial/index.html @@ -0,0 +1,61 @@ +--- +title: WorkerNavigator.serial +slug: Web/API/WorkerNavigator/serial +tags: + - API + - Property + - Reference + - serial + - WorkerNavigator +--- +

{{APIRef("Web Workers API")}}

+ +

The serial read-only property of the {{domxref("WorkerNavigator")}} interface returns a {{domxref("Serial")}} object which represents the entry point into the {{domxref("Web Serial API")}}.

+ +

When getting, the same instance of the {{domxref("Serial")}} object will always be returned.

+ +

Syntax

+ +
var serialObj = self.navigator.serial;
+ +

Value

+

A {{domxref("Serial")}} object.

+ +

Examples

+ +

The following example uses the getPorts() method to initialize a list of available ports.

+ +
self.navigator.serial.getPorts()
+.then((ports) => {
+  // Initialize the list of available ports.
+});
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Serial API','#extensions-to-the-workernavigator-interface','Extensions to the Worker Navigator Interface')}}{{Spec2('Web Serial API')}}Initial definition.
+ +

Browser compatibility

+ + + +

{{Compat("api.WorkerNavigator.serial")}}

+ +

See also

+ +