-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Remove deprecation for navigator.vendor and navigator.platform #27342
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
base: main
Are you sure you want to change the base?
Conversation
These values are not deprecated in the spec and so should not be marked as such.
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
I asked about this in the MDN chat rooms. Here is the conversation for future references:
|
Given that It's fine, this value doesn't aid in fingerprinting beyond repeating what is already available in "this thing is never going away" properties (and the user agent string is a heck of lot more fingerprinty). MDN doesn't need to "have a stronger opinion" about compat here than the spec defines, and right now that deprecation warning is both unwarranted (there is no security implication), and effectively a lie (it's not deprecated in principle according to the spec, nor in practice in any browser including Firefox) |
I support I agree that these properties are usually to be avoided. I would support some kind of soft "discouraged by the community" designator, if this repo had one. But this repo's data guidelines state that the @sideshowbarker is right that we have a responsibility to warn people away from these. I think a good balance is:
This is spiritually what the outcome of mdn/content#14429 + mdn/content#14452 was, before it got undone. I'm happy to work on the https://github.com/mdn/content copy if that's where we go with this. |
For the first point in that list, was that supposed to say |
Yes, thank you, edited. |
Summary
The WhatWG spec for the navigator object does not list these properties as deprecated, but does call them out as being useful rather than to be avoided.
While for security reasons the amount of information provided by browsers through navigator properties has been reduced from what the older standard allowed for (as highlighted by the warning in the spec that "user agent implementers are strongly urged to include as little information in this API as possible", which all browsers have indeed taken to heart by only providing summary information rather than detailed information), the properties themselves have not been deprecated, and the use of
navigator
has in no way been marked as bad. As per the text for the navigator object itself, rather the opposite:Test results and supporting details
Related issues