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:
parent
62a9f00bd3
commit
f3ed6619da
|
@ -1313,7 +1313,7 @@ void ProxyURLLoaderFactory::CreateLoaderAndStart(
|
|||
return;
|
||||
}
|
||||
|
||||
if (DisableRequestHandlingForTesting()) {
|
||||
if (DisableRequestHandlingForTesting() && request.url.SchemeIsHTTPOrHTTPS()) {
|
||||
// This is the so-called pass-through, no-op option.
|
||||
if (target_factory_) {
|
||||
target_factory_->CreateLoaderAndStart(std::move(receiver), request_id,
|
||||
|
|
Loading…
Reference in New Issue