Skip to content

Commit 21211fb

Browse files
committed
fix: Firefox user-agent string reference
Since Firefox 127.0 released, Linux x86 was reported as x86_64, add note for it. Add notes for windows aarch64 cpu and remove outdated reference. Signed-off-by: Coia Prant <[email protected]>
1 parent e992b5d commit 21211fb

File tree

1 file changed

+12
-4
lines changed
  • files/en-us/web/http/reference/headers/user-agent/firefox

1 file changed

+12
-4
lines changed

files/en-us/web/http/reference/headers/user-agent/firefox/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ The preferred way to target content to a device form factor is to use CSS Media
5555

5656
Windows user agents have the following variations, where _x.y_ is the Windows NT version (for instance, Windows NT 6.1).
5757

58-
| Windows version | Gecko user agent string |
59-
| -------------------------------- | --------------------------------------------------------------------------------- |
60-
| Windows NT on x86 or aarch64 CPU | Mozilla/5.0 (Windows NT _x_._y_; rv:10.0) Gecko/20100101 Firefox/10.0 |
61-
| Windows NT on x64 CPU | Mozilla/5.0 (Windows NT _x_._y_; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0 |
58+
| Windows version | Gecko user agent string |
59+
| --------------------- | --------------------------------------------------------------------------------- |
60+
| Windows NT on x86 CPU | Mozilla/5.0 (Windows NT _x_._y_; rv:10.0) Gecko/20100101 Firefox/10.0 |
61+
| Windows NT on x64 CPU | Mozilla/5.0 (Windows NT _x_._y_; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0 |
62+
63+
> [!NOTE]
64+
> For aarch64 CPU, It reported as x86 on Windows 10 (since it doesn't support x64 emulation), and reported as x86_64 on Windows 11.
65+
> See [Bugzilla #1763310](https://bugzil.la/show_bug.cgi?id=1763310)
6266
6367
## macOS
6468

@@ -78,6 +82,10 @@ Linux is a more diverse platform. Your distribution of Linux might include an ex
7882
| Linux desktop on i686 CPU | Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0 |
7983
| Linux desktop on x86_64 CPU | Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 |
8084

85+
> [!NOTE]
86+
> In Firefox 127.0 and later, 32-bit x86 will now be reported as x86_64 in Firefox's User-Agent string and `navigator.platform` and `navigator.oscpu` Web APIs
87+
> See [Firefox 127.0 Release Notes](https://www.mozilla.org/en-US/firefox/127.0/releasenotes/)
88+
8189
## Firefox for Android
8290

8391
Firefox for Android contains the Android version as part of the _platform_ token. For increased interoperability, if the browser is running on a version below 4 it will report 4.4. Android versions 4 and above report the version accurately. Note that the same Gecko—with the same capabilities—is shipped to all versions of Android.

0 commit comments

Comments
 (0)