谷歌浏览器 Chrome 主版本号即将进入三位数时代,Chrome 100 会搞事?

Google 已经开始在为 Chrome 版本号即将进入三位数时代做准备。Google is already preparing for the three-digit era of Chrome version numbers.
According to reports, in the first half of 2022, the main version number of Chrome will reach three digits: 100. Since the user agent parsing library had problems when the major version number changed from one digit to two digits before, for the upcoming Chrome 100, Google hopes to find possible problems related to the three-digit version number as soon as possible, so that Be prepared when it really comes.
The preparations made by Google can be described as simple and rude-directly provide users with a flag option that can force “modify” the major version number to simulate the major version number reaching 100.
From Chrome 96 to Chrome 99, enter chrome://flags in the address bar and enable #force-major-version-to-100flag. The major version number in the User-Agent information of the browser will change to 100.
After enabling, you can visit https://is-chrome-100-yet.glitch.me/ to check whether the major version number has been successfully changed to 100.
If you encounter problems when using the browser after modifying the main version number, you can report the error to Web Compat.
A currently known case is that websites developed with the web design tool Duda will be affected because the browser’s major version number has changed to 100. Because these websites only read the first two digits after “Chrome/” when parsing the User-Agent of the browser. This means that the major version number of “Chrome/99” can correctly parse 99, but the major version number of “Chrome/100” will be treated as 10.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 However, Duda recently issued a statement and made it clear that the web design toolkit has been updated to fix the errors Configuration rules.
In addition, Google has also considered forcing the major version number to be placed in the position of the minor version number. The effect is as follows: Chrome/100.0.1234.56 will become Chrome/99.100.1234.56. In this way, the major version number will stay in two digits. .

据介绍,2022 年上半年,Chrome 的主版本号将达到三位数:100。由于此前主版本号从一位数变为两位数时,用户代理解析库曾出现过问题,所以对于即将到来的 Chrome 100,Google 希望尽早发现与三位数版本号相关的可能问题,以便在它真正到来时做好准备。

而 Google 所做的准备可谓是简单粗暴——为用户直接提供一个可以强制“修改”主版本号的 flag 选项,以此来模拟主版本号到达 100。

从 Chrome 96 开始,直到 Chrome 99,在地址栏输入chrome://flags并启用#force-major-version-to-100flag。浏览器 User-Agent 信息中的主版本号便会变为 100。

启用之后,可访问 https://is-chrome-100-yet.glitch.me/ 检测主版本号是否已成功修改为 100。

如果修改主版本号后,使用浏览器时遇到问题,可将错误报告反馈至 Web Compat。

目前一个已知的案例是,使用网页设计工具 Duda 开发的网站会因为浏览器主版本号变为 100 而受到影响。因为这些网站在解析浏览器的 User-Agent 时,只读取了”Chrome/”之后的前两位数字。这意味着”Chrome/99″的主版本号可正确解析出 99,但“Chrome/100”的主版本号则会被当做 10。

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

不过 Duda 公司近日已发布声明并明确表示,网页设计工具包已更新,修复了错误的配置规则。

此外,Google 也考虑了将主版本号强行放到次版本号的位置,效果如下:

Chrome/100.0.1234.56 会变为 Chrome/99.100.1234.56

如此一来,主版本号就会一直停留在两位数。

发表评论

后才能评论