Skip to content

Commit 86e1075

Browse files
rbqvqhamishwillee
andauthored
fix: Firefox user-agent string reference (#39329)
* 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]> * Update files/en-us/web/http/reference/headers/user-agent/firefox/index.md * Update files/en-us/web/http/reference/headers/user-agent/firefox/index.md * Update files/en-us/web/http/reference/headers/user-agent/firefox/index.md * Update files/en-us/web/http/reference/headers/user-agent/firefox/index.md --------- Signed-off-by: Coia Prant <[email protected]> Co-authored-by: Hamish Willee <[email protected]>
1 parent c5dc2ad commit 86e1075

File tree

1 file changed

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

1 file changed

+11
-4
lines changed

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

Lines changed: 11 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+
> An aarch64 CPU is reported as x86_64 on Windows 11, and x86 on Windows 10 (since it doesn't support x64 emulation).
65+
> See [Bugzilla #1763310](https://bugzil.la/1763310).
6266
6367
## macOS
6468

@@ -78,6 +82,9 @@ 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,{{domxref("navigator.platform")}}, and {{domxref("navigator.oscpu")}} (see [Firefox 127.0 Release Notes](https://www.mozilla.org/en-US/firefox/127.0/releasenotes/)).
87+
8188
## Firefox for Android
8289

8390
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)