Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

navigator.platform is exposed despite Spoof User-Agent #118

Closed
frznvm0 opened this issue Jan 28, 2015 · 3 comments
Closed

navigator.platform is exposed despite Spoof User-Agent #118

frznvm0 opened this issue Jan 28, 2015 · 3 comments

Comments

@frznvm0
Copy link

frznvm0 commented Jan 28, 2015

In inspector console:

navigator.platform
// "Linux x86_64"

This happens, even though I have "Spoof User-Agent string" enabled on the Privacy tab in uMatrix options.

Privacy tab

I think the platform should also be a separate option, or maybe parsed from this list.

@d-kr
Copy link

d-kr commented Jan 29, 2015

(I'm just a user, but:) I think that the functions should move (including spoof-agent) in an extra extension, because the whole navigator object tells much more about the browser:

  • .userAgent returns the user agent too,
  • .plugins returns a list of all installed plugins
  • .appVersion, .appCodeName, .appName, .product, .vendor and many more parts of the user agent

and uMatrix is for me "just" for CSP based filtering.

Edit: Wording

@frznvm0
Copy link
Author

frznvm0 commented Jan 29, 2015

That's actually a much better idea.
Should I close this?

@gorhill
Copy link
Owner

gorhill commented Jan 29, 2015

Should I close this?

No.

I will not extend the UA-spoofing feature, but I will add the code to try to find the platform and use it, this seems trivial enough to me.

gorhill added a commit that referenced this issue Apr 10, 2015
gorhill added a commit that referenced this issue Apr 10, 2015
gorhill added a commit that referenced this issue Apr 10, 2015
@gorhill gorhill closed this as completed in ad9d591 Dec 1, 2017
Noxgrim pushed a commit to Noxgrim/uMatrix that referenced this issue Dec 29, 2021
…ed-at-the-core UA spoofer

The end result of the flawed UA spoofer was to accomplish the
OPPOSITE of the intended goal. UA spoofing for privacy purpose
turns out to be a whole complicated task on its own, and is
best undertaken as a separate dedicated extension -- assuming
it is possible at all.

In any case, this had no place in a "Privacy" section in uMatrix,
this was a bad idea to create this feature in the first place. It's
never too late to correct a bad idea, and this is the purpose of
this commit.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants