[tor-bugs] #26146 [Applications/Tor Browser]: Setting `general.useragent.override` does not spoof the platform part anymore in ESR 60 which is confusing

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Sep 12 13:34:14 UTC 2018


#26146: Setting `general.useragent.override` does not spoof the platform part
anymore in ESR 60 which is confusing
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:  tbb-
                                                 |  team
     Type:  defect                               |         Status:  new
 Priority:  Medium                               |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  ff60-esr, tbb-fingerprinting-os,     |  Actual Points:
  tbb-8.0-issues                                 |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by mcs):

 Replying to [comment:36 tom]:
 > ...
 > I think the fastest thing to do for testing purposes would be to strip
 the '!nsContentUtils::ShouldResistFingerprinting' guarding the
 'general.useragent.override' pref and then set
 'general.useragent.override' to 'Macintosh; Intel Mac OS X 10.13'

 Thanks for the guidance. Kathy and I hacked `Navigator::GetUserAgent()` to
 respect `general.useragent.override` and set that pref to `Mozilla/5.0
 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0`.
 The result is that our tests with both GitHub and Google Docs were
 successful: the command key is correctly recognized on macOS.

 I am not sure what the next step is; it looks like it will not be trivial
 to create a shippable patch (since `Navigator::GetUserAgent()` expects to
 get the userAgent string from the HTTP protocol handle, but we want HTTP
 to use a spoofed `User-Agent`).

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26146#comment:38>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list