-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark NavigatorID members standard; most deprecated #6612
Conversation
This change consistently marks all members of NavigatorID as standard — because they are all in fact defined in the HTML spec. And it marks almost all as deprecated — because almost all of them are required to return either a constant (and so, useless) value, or else are defined to *optionally* return a constant value, but are strongly encouraged by the spec to do return a constant value. The only exceptions are: * navigator.userAgent, defined to return a non-constant value * navigator.vendor, defined to return a value depending on which engine the browser is running; either "Google Inc.", "Apple Computer, Inc.", or the empty string (for Gecko) https://html.spec.whatwg.org/multipage/#dom-navigator-useragent Fixes #6567
@@ -1572,7 +1572,7 @@ | |||
}, | |||
"status": { | |||
"experimental": false, | |||
"standard_track": false, | |||
"standard_track": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed: https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-oscpu
(But required to only be supported in Gecko.)
@@ -1736,8 +1736,8 @@ | |||
}, | |||
"status": { | |||
"experimental": false, | |||
"standard_track": false, | |||
"deprecated": false | |||
"standard_track": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -2226,8 +2226,8 @@ | |||
}, | |||
"status": { | |||
"experimental": false, | |||
"standard_track": false, | |||
"deprecated": false | |||
"standard_track": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed: https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-vendorsub
(Must return the empty string.)
@@ -91,7 +91,7 @@ | |||
"status": { | |||
"experimental": false, | |||
"standard_track": true, | |||
"deprecated": false | |||
"deprecated": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -139,7 +139,7 @@ | |||
"status": { | |||
"experimental": false, | |||
"standard_track": true, | |||
"deprecated": false | |||
"deprecated": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -187,7 +187,7 @@ | |||
"status": { | |||
"experimental": false, | |||
"standard_track": true, | |||
"deprecated": false | |||
"deprecated": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -239,7 +239,7 @@ | |||
"status": { | |||
"experimental": false, | |||
"standard_track": true, | |||
"deprecated": false | |||
"deprecated": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -287,7 +287,7 @@ | |||
"status": { | |||
"experimental": false, | |||
"standard_track": true, | |||
"deprecated": false | |||
"deprecated": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change consistently marks all members of
NavigatorID
as standard — because they are all in fact defined in the HTML spec. And it marks almost all as deprecated — because almost all of them are required to return either a constant (and so, useless) value, or else are defined to optionally return a constant value, but are strongly encouraged by the spec to do return a constant value.The only exceptions are:
navigator.userAgent
, defined to return a non-constant valuenavigator.vendor
, defined to return a value depending on which engine the browser is running; eitherGoogle Inc.
,Apple Computer, Inc.
, or the empty string (for Gecko)https://html.spec.whatwg.org/multipage/#dom-navigator-useragent
Fixes #6567