The "platform" and "appVersion" ID strings cannot be changed or configured - a privacy leak/risk
Reported by
anestl...@gmail.com,
Jul 17 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: https://browserleaks.com/javascript I want to be able to change what my chrome reports in the "Platform" string. The same applies to "appVersion". What is the expected behavior? What went wrong? Linux x86_64 Did this work before? N/A Chrome version: 59.0.3071.115 Channel: stable OS Version: Flash Version: Unable to change platform this also applies to UA, but various add-ons allow to change it, even though I'd be happier if there was a chrome://flags/ to edit the" X11; Linux x86_64" part both in UA and appVersion.
,
Jul 18 2017
,
Jul 18 2017
The user agent can be changed, so it might make sense to enable extensions to modify other fields as well? On the other hand it is probably easy to identify the browser based on available apis anyway.
,
Jul 24 2017
You can already spoof platform and appVersion by modifying the navigator object with a content script, so no additional api is required.
Example:
Object.defineProperty(window.navigator, 'platform', {
get: function() {
return 'Some platform';
}
});
(from https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg)
,
Jul 24 2017
I was curious if that can be done without installing an add-on/extension. |
||||
►
Sign in to add a comment |
||||
Comment 1 by brajkumar@chromium.org
, Jul 18 2017Status: Untriaged (was: Unconfirmed)