Throw IllegalArgumentException from Cronet...
Throw 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* Review URL: https://codereview.chromium.org/642913004 Cr-Commit-Position: refs/heads/master@{#300363}
Showing
Please register or sign in to comment