Only disable request handling for HTTP/S schemes (see issue #3110)

The `--disable-request-handling-for-testing` command-line flag would previously
disable handling of all schemes, including custom schemes and internal schemes
such as devtools.
This commit is contained in:
Marshall Greenblatt 2021-10-05 11:03:24 +03:00
parent 62a9f00bd3
commit f3ed6619da
1 changed files with 1 additions and 1 deletions

View File

@ -1313,7 +1313,7 @@ void ProxyURLLoaderFactory::CreateLoaderAndStart(
return; return;
} }
if (DisableRequestHandlingForTesting()) { if (DisableRequestHandlingForTesting() && request.url.SchemeIsHTTPOrHTTPS()) {
// This is the so-called pass-through, no-op option. // This is the so-called pass-through, no-op option.
if (target_factory_) { if (target_factory_) {
target_factory_->CreateLoaderAndStart(std::move(receiver), request_id, target_factory_->CreateLoaderAndStart(std::move(receiver), request_id,