DescriptionThrow IllegalArgumentException from Cronet HttpUrlRequestFactoryConfig.addQuicHint if host param is URL.
This is needed to prevent invalid hosts from being added to HttpServerProperties and having Quic hints not working correctly.
HttpUrlRequestFactoryConfig is pure Java and doesn't depend on native library, so it only provides a rudimentary check, but URLRequestContextAdapter::InitRequestContextOnNetworkThread() performs IsCanonicalizedHostCompliant check and uses LOG(ERROR) for invalid hosts.
BUG=420464
TEST=build/android/test_runner.py instrumentation --test-apk=CronetTestInstrumentation -f *Quic*
Committed: https://crrev.com/f937604c661f75a423b6e1c0a285eff9a8556577
Cr-Commit-Position: refs/heads/master@{#300363}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add IsCanonicalizedHostCompliant check to Quic Hint parsing. #
Messages
Total messages: 14 (4 generated)
|