mirror of
https://github.com/servo/servo.git
synced 2025-08-24 14:48:21 +01:00
Update user agent strings to match Firefox 140 (#38802)
Update user agent strings to match Firefox 140 now that #38563 is merged. Testing: No tests for user agent string update. Signed-off-by: Alex Touchet <26315797+atouchet@users.noreply.github.com>
This commit is contained in:
parent
75d5e0fcc7
commit
8778f2d1f2
1 changed files with 6 additions and 6 deletions
|
@ -481,12 +481,12 @@ impl UserAgentPlatform {
|
|||
const ARCHITECTURE: &str = "";
|
||||
|
||||
format!(
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; {ARCHITECTURE}rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; {ARCHITECTURE}rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
)
|
||||
},
|
||||
UserAgentPlatform::Desktop if cfg!(target_os = "macos") => {
|
||||
format!(
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
)
|
||||
},
|
||||
UserAgentPlatform::Desktop => {
|
||||
|
@ -497,19 +497,19 @@ impl UserAgentPlatform {
|
|||
const ARCHITECTURE: &str = "i686";
|
||||
|
||||
format!(
|
||||
"Mozilla/5.0 (X11; Linux {ARCHITECTURE}; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (X11; Linux {ARCHITECTURE}; rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
)
|
||||
},
|
||||
UserAgentPlatform::Android => {
|
||||
format!(
|
||||
"Mozilla/5.0 (Android 10; Mobile; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (Android 10; Mobile; rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
)
|
||||
},
|
||||
UserAgentPlatform::OpenHarmony => format!(
|
||||
"Mozilla/5.0 (OpenHarmony; Mobile; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (OpenHarmony; Mobile; rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
),
|
||||
UserAgentPlatform::Ios => format!(
|
||||
"Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X; rv:128.0) Servo/{SERVO_VERSION} Firefox/128.0"
|
||||
"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X; rv:140.0) Servo/{SERVO_VERSION} Firefox/140.0"
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue