This aligns Chromium with the
standardized default behavior already shipping in
Safari and
Firefox and fixes a bunch of WPTs.
While web-observable, the change is extremely unlikely to cause breakage because it makes the Cookie Store more lenient in accepting Cookies. The only hypothetical way this would break a website is if the site relied on rejected Promises from setting cookies with leading / trailing whitespace characters.
Out of an abundance of caution there's a feature flag for it (CookieStoreAPIWhitespaceStripping)
This is shipping in M148.
Thanks!
Johann