aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
authorAlex Touchet <26315797+atouchet@users.noreply.github.com>2024-10-10 01:17:52 -0700
committerGitHub <noreply@github.com>2024-10-10 08:17:52 +0000
commit61a930402d5ac1f03530d7506960b8a04cfb974a (patch)
tree58ac6aa0a96b65eac4593da40c62b96b0a4b210c /components/servo/lib.rs
parent0c4720140fe71eed8760fa7ab1d39e024fc56d27 (diff)
downloadservo-61a930402d5ac1f03530d7506960b8a04cfb974a.tar.gz
servo-61a930402d5ac1f03530d7506960b8a04cfb974a.zip
Update Servo user agent strings (#33770)
* Update Servo user agent strings Signed-off-by: Alex Touchet <26315797+atouchet@users.noreply.github.com> * Use Firefox ESR version instead Signed-off-by: Alex Touchet <26315797+atouchet@users.noreply.github.com> --------- Signed-off-by: Alex Touchet <26315797+atouchet@users.noreply.github.com>
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 19956ed5055..134181db511 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -1226,26 +1226,26 @@ fn default_user_agent_string_for(agent: UserAgent) -> String {
#[cfg(all(target_os = "linux", target_arch = "x86_64", not(target_env = "ohos")))]
let desktop_ua_string =
- format!("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Servo/{servo_version} Firefox/111.0");
+ format!("Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Servo/{servo_version} Firefox/128.0");
#[cfg(all(
target_os = "linux",
not(target_arch = "x86_64"),
not(target_env = "ohos")
))]
let desktop_ua_string =
- format!("Mozilla/5.0 (X11; Linux i686; rv:109.0) Servo/{servo_version} Firefox/111.0");
+ format!("Mozilla/5.0 (X11; Linux i686; rv:128.0) Servo/{servo_version} Firefox/128.0");
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
let desktop_ua_string = format!(
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Servo/{servo_version} Firefox/111.0"
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Servo/{servo_version} Firefox/128.0"
);
#[cfg(all(target_os = "windows", not(target_arch = "x86_64")))]
let desktop_ua_string =
- format!("Mozilla/5.0 (Windows NT 10.0; rv:109.0) Servo/{servo_version} Firefox/111.0");
+ format!("Mozilla/5.0 (Windows NT 10.0; rv:128.0) Servo/{servo_version} Firefox/128.0");
#[cfg(target_os = "macos")]
let desktop_ua_string = format!(
- "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Servo/{servo_version} Firefox/111.0"
+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Servo/{servo_version} Firefox/128.0"
);
#[cfg(any(target_os = "android", target_env = "ohos"))]
@@ -1254,13 +1254,13 @@ fn default_user_agent_string_for(agent: UserAgent) -> String {
match agent {
UserAgent::Desktop => desktop_ua_string,
UserAgent::Android => format!(
- "Mozilla/5.0 (Android; Mobile; rv:109.0) Servo/{servo_version} Firefox/111.0"
+ "Mozilla/5.0 (Android; Mobile; rv:128.0) Servo/{servo_version} Firefox/128.0"
),
UserAgent::OpenHarmony => format!(
- "Mozilla/5.0 (OpenHarmony; Mobile; rv:109.0) Servo/{servo_version} Firefox/111.0"
+ "Mozilla/5.0 (OpenHarmony; Mobile; rv:128.0) Servo/{servo_version} Firefox/128.0"
),
UserAgent::iOS => format!(
- "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X; rv:109.0) Servo/{servo_version} Firefox/111.0"
+ "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X; rv:128.0) Servo/{servo_version} Firefox/128.0"
),
}
}