Skip to content
Snippets Groups Projects
Verified Commit 189fd31f authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

Bug 1918009 - Fix the RFP-spoofed User-Agent header. r=tjr

The spoofed value of the HTTP user-agent header is not consistent with
the value of navigator.userAgent on Windows, and this can lead to
compatibility issues.

Differential Revision: https://phabricator.services.mozilla.com/D223745
parent cc6f3043
Branches
Tags
1 merge request!1293Bug 43306: Rebased stable onto 128.5.0esr
......@@ -115,11 +115,11 @@ const SPOOFED_UA_NAVIGATOR_OS = {
other: "X11; Linux x86_64",
};
const SPOOFED_UA_HTTPHEADER_OS = {
linux: "Windows NT 10.0",
win: "Windows NT 10.0",
macosx: "Windows NT 10.0",
linux: "Windows NT 10.0; Win64; x64",
win: "Windows NT 10.0; Win64; x64",
macosx: "Windows NT 10.0; Win64; x64",
android: "Android 10; Mobile",
other: "Windows NT 10.0",
other: "Windows NT 10.0; Win64; x64",
};
const SPOOFED_HW_CONCURRENCY = 2;
......
......@@ -130,11 +130,11 @@ const SPOOFED_UA_NAVIGATOR_OS = {
other: "X11; Linux x86_64",
};
const SPOOFED_UA_HTTPHEADER_OS = {
linux: "Windows NT 10.0",
win: "Windows NT 10.0",
macosx: "Windows NT 10.0",
linux: "Windows NT 10.0; Win64; x64",
win: "Windows NT 10.0; Win64; x64",
macosx: "Windows NT 10.0; Win64; x64",
android: "Android 10; Mobile",
other: "Windows NT 10.0",
other: "Windows NT 10.0; Win64; x64",
};
const SPOOFED_HW_CONCURRENCY = 2;
......
......@@ -64,7 +64,7 @@
#if defined(MOZ_WIDGET_ANDROID)
# define SPOOFED_HTTP_UA_OS "Android 10; Mobile"
#else
# define SPOOFED_HTTP_UA_OS "Windows NT 10.0"
# define SPOOFED_HTTP_UA_OS "Windows NT 10.0; Win64; x64"
#endif
struct JSContext;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment