Skip to content

Commit

Permalink
Mention CPU architecture inside OS User Agent detection page (#33135)
Browse files Browse the repository at this point in the history
Mention CPU architecture

Not entirely sure about this one, as Mac still doesn't report ARM in its user agent for Apple silicon macs.
Windows does though, and this mention could've saved me some headaches.
  • Loading branch information
busybox11 authored Apr 22, 2024
1 parent 9a9ff67 commit 30760ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Most rendering engines put the version number in the _RenderingEngine/VersionNum
## OS
The Operating System is given in most User Agent strings (although not web-focused platforms like Firefox OS), but the format varies a lot. It is a fixed string between two semicolons, in the comment part of the User Agent. These strings are specific for each browser. They indicate the OS, but also often its version and information on the relying hardware (32 or 64 bits, or Intel/PPC for Mac).
The Operating System is given in most User Agent strings (although not web-focused platforms like Firefox OS), but the format varies a lot. It is a fixed string between two semicolons, in the comment part of the User Agent. These strings are specific for each browser. They indicate the OS, but also often its version and information on the relying hardware (32 or 64 bits, Intel/PPC for Mac, or x86/ARM CPU architecture for Windows PCs).
Like in all cases, these strings may change in the future, one should use them only in conjunction with the detection of already released browsers. A technological survey must be in place to adapt the script when new browser versions are coming out.
Expand Down

0 comments on commit 30760ba

Please sign in to comment.