From 4467d9b4ab69a0e2e9cc8315af573086ade0e27b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 29 Apr 2022 17:03:45 -0400 Subject: [PATCH] Fix Firefox UA pattern Similar to Safari, this differentiates between mobile and desktop. In #174, we can further improve this by defining the allowed values for and , etc. Closes #171 --- compatibility.bs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/compatibility.bs b/compatibility.bs index 234af64..d814c74 100644 --- a/compatibility.bs +++ b/compatibility.bs @@ -990,8 +990,7 @@ AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<chromeVersion>

Firefox User-Agent pattern

-"Mozilla/5.0 (<platform>; <oscpu> rv: -<firefoxVersion>) Gecko/<geckoVersion> +"Mozilla/5.0 (<firefoxPlatform>; rv: <firefoxVersion>) Gecko/<geckoVersion> Firefox/<firefoxVersion>"
@@ -1013,6 +1012,25 @@ In Firefox on desktop platforms (Windows, macOS, Linux, etc.), date "20100101". In Firefox on Android, <geckoVersion> is the same value as <firefoxVersion>. +<firefoxPlatform> decomposes to the following: + +On desktop platforms, "<platform>; <oscpu>". + +On Firefox on Android, "<platform>; <deviceCompat>". + + + + + + + + + + + + +
TokensDescription
<deviceCompat>The string "Mobile", without any leading or trailing spaces.
+

Safari