-
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
Inconsistent standard status and deprecation of NavigatorID properties and methods #6567
Comments
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
Yes, for sure
Yes. But I think So I think it is in fact the spec intent that And so, along with See #6612 for a patch the makes the changes as summarized above. |
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
There are some inconsistencies within
NavigatorID
. Note that all of the following items are defined within the spec, even for those marked as non-standard.Marked as standard, non-deprecated
appCodeName
appName
appVersion
platform
product
userAgent
vendor
(Note: Defined inNavigator.json
)Marked as standard, deprecated
taintEnabled()
Marked as non-standard, non-deprecated
vendorSub
(Note: Defined inNavigator.json
)Marked as non-standard, deprecated
oscpu
(Note: Defined inNavigator.json
)productSub
(Note: Defined inNavigator.json
)Considering that they are defined in the spec, shouldn't they all be marked as standard? Also, since most of these (except
platform
anduserAgent
) returns a constant or some historic value, IMO they should be deprecated, but I don't know about BCD's policy around deprecation.The text was updated successfully, but these errors were encountered: