telung
V2EX  ›  Apple

发现最新版的 OS X 的 User Agent 已经开始用假版本号了

  •  
  •   telung · Jun 3, 2021 · 5868 views
    This topic created in 1829 days ago, the information mentioned may be changed or developed.
    Big sur 11.4 的 User Agent 是:

    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.37
    12 replies    2021-06-04 07:09:00 +08:00
    ailaoli
        1
    ailaoli  
       Jun 3, 2021
    我看了下,确实
    pi1ot
        2
    pi1ot  
       Jun 3, 2021
    之前是什么?
    code4you
        3
    code4you  
       Jun 3, 2021
    我当初是觉得很奇葩 为啥我是 11.x 显示的是 10.15 的登录信息
    yukiww233
        4
    yukiww233  
       Jun 3, 2021   ❤️ 1
    ua 假版本号肯定和系统没有关系啊....
    搜索了下是浏览器的 feature:
    https://www.chromestatus.com/feature/5452592194781184
    所有 mac 的版本都会拼 10_15_7
    cairnechen
        5
    cairnechen  
       Jun 3, 2021
    @yukiww233 惊了,居然是 feature
    jimages
        6
    jimages  
       Jun 3, 2021 via Android
    为了保持兼容,不仅是浏览器,其他很多地方的系统版本号都是如此
    kop1989
        7
    kop1989  
       Jun 3, 2021
    " a long tail of broken web content "应该怎么理解?
    wy315700
        8
    wy315700  
       Jun 3, 2021
    肯定是很多网页判断把 Mac OS X 10_x 写死了,,,就跟 Windows 没有 9 一样,,因为 Windows 9x 是用来判断 win98 和 win95 了。
    bayallen
        9
    bayallen  
       Jun 3, 2021
    怪不得网站的统计记录里看不到 Big Sur 版本的。
    hahastudio
        10
    hahastudio  
       Jun 3, 2021
    issuetracker.unity3d.com/issues/unity-webgl-builds-do-not-run-on-macos-big-sur
    /Mac OS X (10[\.\_\d]+)/.exec(i)[1]
    这么写正则不把自己坑死才怪呢
    ooops
        11
    ooops  
       Jun 3, 2021 via iPhone
    OS X 中的 X 是 10 的意思,big sur 是 11 了。
    ZeoKarl
        12
    ZeoKarl  
       Jun 4, 2021 via iPhone   ❤️ 1
    M1 处理器的还写的 Intel 呢🌚
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2291 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
    ♥ Do have faith in what you're doing.