don't use HTTPSE if adblock has a redirect already

This commit is contained in:
Anton Lazarev
2022-11-01 20:51:48 -07:00
parent 7f95aeebe7
commit 8b341e0ba1
@@ -54,7 +54,7 @@ int OnBeforeURLRequest_HttpsePreFileWork(
DCHECK_CURRENTLY_ON(BrowserThread::UI);
// Don't try to overwrite an already set URL by another delegate (adblock/tp)
if (!ctx->new_url_spec.empty()) {
if (!ctx->new_url_spec.empty() || !ctx->mock_data_url.empty()) {
return net::OK;
}