Skip to content

Commit 372b584

Browse files
author
pstanciu
committed
Backed out changeset 2b54764bcf29 (bug 1860417) for causing mochitest failures on test_setSinkId_after_loop.html. CLOSED TREE
1 parent 2a0bfb5 commit 372b584

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

browser/components/resistfingerprinting/test/browser/browser_navigator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ const DEFAULT_APPVERSION = {
2020
linux: "5.0 (X11)",
2121
win: "5.0 (Windows)",
2222
macosx: "5.0 (Macintosh)",
23-
android: `5.0 (Linux; Android ${osVersion})`,
23+
android: `5.0 (Android ${osVersion})`,
2424
other: "5.0 (X11)",
2525
};
2626

2727
const SPOOFED_APPVERSION = {
2828
linux: "5.0 (X11)",
2929
win: "5.0 (Windows)",
3030
macosx: "5.0 (Macintosh)",
31-
android: "5.0 (Linux; Android 10)",
31+
android: "5.0 (Android 10)",
3232
other: "5.0 (X11)",
3333
};
3434

@@ -103,22 +103,22 @@ const SPOOFED_OSCPU = {
103103
const DEFAULT_UA_OS = {
104104
linux: `X11; Linux ${defaultLinuxCpu}`,
105105
macosx: "Macintosh; Intel Mac OS X 10.15",
106-
android: `Linux; Android ${osVersion}; Mobile`,
106+
android: `Android ${osVersion}; Mobile`,
107107
other: `X11; Linux ${defaultLinuxCpu}`,
108108
};
109109

110110
const SPOOFED_UA_NAVIGATOR_OS = {
111111
linux: "X11; Linux x86_64",
112112
win: "Windows NT 10.0; Win64; x64",
113113
macosx: "Macintosh; Intel Mac OS X 10.15",
114-
android: "Linux; Android 10; Mobile",
114+
android: "Android 10; Mobile",
115115
other: "X11; Linux x86_64",
116116
};
117117
const SPOOFED_UA_HTTPHEADER_OS = {
118118
linux: "Windows NT 10.0",
119119
win: "Windows NT 10.0",
120120
macosx: "Windows NT 10.0",
121-
android: "Linux; Android 10; Mobile",
121+
android: "Android 10; Mobile",
122122
other: "Windows NT 10.0",
123123
};
124124
const SPOOFED_HW_CONCURRENCY = 2;

browser/components/resistfingerprinting/test/browser/browser_navigator_iframes.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ const DEFAULT_APPVERSION = {
3535
linux: "5.0 (X11)",
3636
win: "5.0 (Windows)",
3737
macosx: "5.0 (Macintosh)",
38-
android: `5.0 (Linux; Android ${osVersion})`,
38+
android: `5.0 (Android ${osVersion})`,
3939
other: "5.0 (X11)",
4040
};
4141

4242
const SPOOFED_APPVERSION = {
4343
linux: "5.0 (X11)",
4444
win: "5.0 (Windows)",
4545
macosx: "5.0 (Macintosh)",
46-
android: "5.0 (Linux; Android 10)",
46+
android: "5.0 (Android 10)",
4747
other: "5.0 (X11)",
4848
};
4949

@@ -118,22 +118,22 @@ const SPOOFED_OSCPU = {
118118
const DEFAULT_UA_OS = {
119119
linux: `X11; Linux ${defaultLinuxCpu}`,
120120
macosx: "Macintosh; Intel Mac OS X 10.15",
121-
android: `Linux; Android ${osVersion}; Mobile`,
121+
android: `Android ${osVersion}; Mobile`,
122122
other: `X11; Linux ${defaultLinuxCpu}`,
123123
};
124124

125125
const SPOOFED_UA_NAVIGATOR_OS = {
126126
linux: "X11; Linux x86_64",
127127
win: "Windows NT 10.0; Win64; x64",
128128
macosx: "Macintosh; Intel Mac OS X 10.15",
129-
android: "Linux; Android 10; Mobile",
129+
android: "Android 10; Mobile",
130130
other: "X11; Linux x86_64",
131131
};
132132
const SPOOFED_UA_HTTPHEADER_OS = {
133133
linux: "Windows NT 10.0",
134134
win: "Windows NT 10.0",
135135
macosx: "Windows NT 10.0",
136-
android: "Linux; Android 10; Mobile",
136+
android: "Android 10; Mobile",
137137
other: "Windows NT 10.0",
138138
};
139139
const SPOOFED_HW_CONCURRENCY = 2;

mobile/android/geckoview/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ android {
5252
buildConfigField 'String', "OMNIJAR_NAME", "\"${mozconfig.substs.OMNIJAR_NAME}\"";
5353

5454
// Keep in sync with actual user agent in nsHttpHandler::BuildUserAgent
55-
buildConfigField 'String', "USER_AGENT_GECKOVIEW_MOBILE", "\"Mozilla/5.0 (Linux; Android \" + android.os.Build.VERSION.RELEASE + \"; Mobile; rv:\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \") Gecko/\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \" Firefox/\" + ${mozconfig.defines.MOZILLA_UAVERSION}";
56-
buildConfigField 'String', "USER_AGENT_GECKOVIEW_TABLET", "\"Mozilla/5.0 (Linux; Android \" + android.os.Build.VERSION.RELEASE + \"; Tablet; rv:\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \") Gecko/\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \" Firefox/\" + ${mozconfig.defines.MOZILLA_UAVERSION}";
55+
buildConfigField 'String', "USER_AGENT_GECKOVIEW_MOBILE", "\"Mozilla/5.0 (Android \" + android.os.Build.VERSION.RELEASE + \"; Mobile; rv:\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \") Gecko/\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \" Firefox/\" + ${mozconfig.defines.MOZILLA_UAVERSION}";
56+
buildConfigField 'String', "USER_AGENT_GECKOVIEW_TABLET", "\"Mozilla/5.0 (Android \" + android.os.Build.VERSION.RELEASE + \"; Tablet; rv:\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \") Gecko/\" + ${mozconfig.defines.MOZILLA_UAVERSION} + \" Firefox/\" + ${mozconfig.defines.MOZILLA_UAVERSION}";
5757

5858
buildConfigField 'int', 'MIN_SDK_VERSION', mozconfig.substs.MOZ_ANDROID_MIN_SDK_VERSION;
5959

netwerk/protocol/http/nsHttpHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ void nsHttpHandler::InitUserAgentComponents() {
825825
// Gather platform.
826826
mPlatform.AssignLiteral(
827827
#if defined(ANDROID)
828-
"Linux; Android"
828+
"Android"
829829
#elif defined(XP_WIN)
830830
"Windows"
831831
#elif defined(XP_MACOSX)

toolkit/components/resistfingerprinting/nsRFPService.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
# define SPOOFED_OSCPU "Intel Mac OS X 10.15"
4141
# define SPOOFED_PLATFORM "MacIntel"
4242
#elif defined(MOZ_WIDGET_ANDROID)
43-
# define SPOOFED_UA_OS "Linux; Android 10; Mobile"
44-
# define SPOOFED_APPVERSION "5.0 (Linux; Android 10)"
43+
# define SPOOFED_UA_OS "Android 10; Mobile"
44+
# define SPOOFED_APPVERSION "5.0 (Android 10)"
4545
# define SPOOFED_OSCPU "Linux armv81"
4646
# define SPOOFED_PLATFORM "Linux armv81"
4747
#else
@@ -61,7 +61,7 @@
6161
// For the HTTP User-Agent header, we use a simpler set of spoofed values
6262
// that do not reveal the specific desktop platform.
6363
#if defined(MOZ_WIDGET_ANDROID)
64-
# define SPOOFED_HTTP_UA_OS "Linux; Android 10; Mobile"
64+
# define SPOOFED_HTTP_UA_OS "Android 10; Mobile"
6565
#else
6666
# define SPOOFED_HTTP_UA_OS "Windows NT 10.0"
6767
#endif

0 commit comments

Comments
 (0)