Turns out this is a bug in recent chromedriver which is supposed to get fixed with next release:
https://issues.chromium.org/issues/379584343 https://chromium-review.googlesource.com/c/chromium/src/+/6063257