奇客 因 IE11 Mozilla 凍結(jié)部分用戶代理字符串
兩周前,用戶向 Mozilla 報(bào)告了一個(gè)用戶代理字符串(UA string)引發(fā)的網(wǎng)站兼容性問題。UA string 始于 1990 年代,網(wǎng)站可以利用這一數(shù)據(jù)調(diào)整性能和功能,或屏蔽過時(shí)的瀏覽器。即將發(fā)布的 Firefox 110 的 UA string 是 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:110.0) Gecko/20100101 Firefox/110,用戶報(bào)告它導(dǎo)致了 bestbuy.com 顯示錯(cuò)誤信息,聲稱不支持該瀏覽器,它建議用戶下載最新版本的 Chrome、Firefox 或 Microsoft Edge。調(diào)查發(fā)現(xiàn),原因是 IE11 的 UA string——Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko。Firefox 110 的 UA string 包含了 rv:11,因此被網(wǎng)站識(shí)別為它不再支持的 IE11。Mozilla 的解決方法是凍結(jié)版本號(hào),Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110。
https://bugzilla.mozilla.org/show_bug.cgi?id=1805967
https://miketaylr.com/posts/2022/12/how-the-IE-11-ua-string-broke-sites-in-firefox.html
https://bugzilla.mozilla.org/show_bug.cgi?id=1805967
https://miketaylr.com/posts/2022/12/how-the-IE-11-ua-string-broke-sites-in-firefox.html