You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of today, the logic there is still relevant: The update server responds with 204 if the version is 31.0.1608.0 or lower.
But if the version number is 32.0.0.0 or higher, the server happily accepts the request. This observation is relevant, because currently the logic forcibly falls back to version 9999.0.9999.0 if the major version is lower than 32, or if the build version is lower than 1609. Because navigator.userAgent has been reduced to something like 112.0.0.0, version 9999.0.9999.0 is used unconditionally, even though a lower version number would have been possible too. While there are APIs to get the full version number (i.e. the async navigator.userAgentData.getHighEntropyValues method), it may be sufficient to submit major.0.0.0 when the major version exceeds 31.
More info on User-Agent reduction in Chrome is available at:
crxviewer currently relies on
navigator.userAgent
to extract the version number to forward to the crx download endpoint:crxviewer/src/cws_pattern.js
Lines 143 to 153 in e7ccd4f
As of today, the logic there is still relevant: The update server responds with 204 if the version is 31.0.1608.0 or lower.
But if the version number is
32.0.0.0
or higher, the server happily accepts the request. This observation is relevant, because currently the logic forcibly falls back to version 9999.0.9999.0 if the major version is lower than 32, or if the build version is lower than 1609. Becausenavigator.userAgent
has been reduced to something like112.0.0.0
, version 9999.0.9999.0 is used unconditionally, even though a lower version number would have been possible too. While there are APIs to get the full version number (i.e. the asyncnavigator.userAgentData.getHighEntropyValues
method), it may be sufficient to submit major.0.0.0 when the major version exceeds 31.More info on User-Agent reduction in Chrome is available at:
The text was updated successfully, but these errors were encountered: