From c35fa5afafbbb3737c460e36012c2c0f1ac135f4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 18 Jul 2021 16:27:56 +0200 Subject: [PATCH] mobile-config-autoconfig: update user-agent (MR 16) In the Tor browser user agent, the "geckotrail" part has been changed. Apparently following an upstream change in Firefox: > From Firefox 10 on mobile, geckotrail is the same as firefoxversion. Note: I'm simply running latest Tor browser on Android and visit websites showing the user agent to figure out the latest one. I tried to figure it out from the source code once, but didn't find a place where it could be looked up trivially (since it gets built of multiple components etc.). Related: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox --- src/mobile-config-autoconfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mobile-config-autoconfig.js b/src/mobile-config-autoconfig.js index 2d59ffc..afc9a00 100644 --- a/src/mobile-config-autoconfig.js +++ b/src/mobile-config-autoconfig.js @@ -49,4 +49,4 @@ if (!contentFile.exists()) { } // Select a mobile user agent for firefox (same as tor browser on android) -defaultPref('general.useragent.override', 'Mozilla/5.0 (Android 9; Mobile; rv:78.0) Gecko/20100101 Firefox/78.0'); +defaultPref('general.useragent.override', 'Mozilla/5.0 (Android 9; Mobile; rv:78.0) Gecko/78.0 Firefox/78.0');