From 07facabd80b72f42cd2544029081c59f0c84c38a Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 26 May 2021 16:06:58 -0400 Subject: [PATCH] Specify window.clientInformation Closes #2379. --- source | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/source b/source index fa6bcc221fa..e63c690e122 100644 --- a/source +++ b/source @@ -80102,7 +80102,8 @@ interface Window : EventTarget { // Indexed access is taken care of by the WindowProxy exotic object. // the user agent - readonly attribute Navigator navigator; + readonly attribute Navigator navigator; + readonly attribute Navigator clientInformation; // legacy alias of .navigator readonly attribute boolean originAgentCluster; // user prompts @@ -95432,14 +95433,9 @@ function sendData(data) {

The Navigator object

-
- -

The navigator attribute - of the Window interface must return an instance of the Navigator - interface, which represents the identity and state of the user agent (the client), and allows web - pages to register themselves as potential protocol handlers:

- -
+

Instances of Navigator represent the identity and state of the user agent (the + client). They also serve as a generic global under which various APIs are located in this and + other specifications.

[Exposed=Window]
 interface Navigator {
@@ -95455,8 +95451,17 @@ interface Navigator {
 
   
-

These interface mixins are defined separately so that WorkerNavigator can re-use - parts of the Navigator interface.

+

These interface mixins are defined separately so that WorkerNavigator can reuse parts of + the Navigator interface.

+ +

Each Window has an associated Navigator, which is a Navigator + object. Upon creation of the Window object, its associated Navigator must be + set to a new Navigator object created in the Window object's relevant Realm.

+ +

The navigator and clientInformation getter steps are to return + this's associated Navigator.

@@ -95487,7 +95492,7 @@ interface Navigator { mode, which is either Chrome, Gecko, or WebKit.

The navigator compatibility - mode constrains the NavigatorID interface to the combinations of attribute + mode constrains the NavigatorID mixin to the combinations of attribute values and presence of taintEnabled() and oscpu that are known to be compatible with existing web content.