mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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>
This commit is contained in:
parent
0c4720140f
commit
61a930402d
1 changed files with 8 additions and 8 deletions
|
@ -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"
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue