fix: do not send Fetch.continueRequest twice for auth requests (#10382)
This commit is contained in:
parent
6e2bc890a6
commit
7746cb52a7
|
|
@ -161,11 +161,6 @@ export class CRNetworkManager {
|
||||||
this._responseExtraInfoTracker.requestPaused(request.request, event);
|
this._responseExtraInfoTracker.requestPaused(request.request, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this._userRequestInterceptionEnabled && this._protocolRequestInterceptionEnabled) {
|
|
||||||
this._client._sendMayFail('Fetch.continueRequest', {
|
|
||||||
requestId: event.requestId
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (!event.networkId) {
|
if (!event.networkId) {
|
||||||
// Fetch without networkId means that request was not recongnized by inspector, and
|
// Fetch without networkId means that request was not recongnized by inspector, and
|
||||||
// it will never receive Network.requestWillBeSent. Most likely, this is an internal request
|
// it will never receive Network.requestWillBeSent. Most likely, this is an internal request
|
||||||
|
|
@ -249,7 +244,7 @@ export class CRNetworkManager {
|
||||||
let route = null;
|
let route = null;
|
||||||
if (requestPausedEvent) {
|
if (requestPausedEvent) {
|
||||||
// We do not support intercepting redirects.
|
// We do not support intercepting redirects.
|
||||||
if (redirectedFrom)
|
if (redirectedFrom || (!this._userRequestInterceptionEnabled && this._protocolRequestInterceptionEnabled))
|
||||||
this._client._sendMayFail('Fetch.continueRequest', { requestId: requestPausedEvent.requestId });
|
this._client._sendMayFail('Fetch.continueRequest', { requestId: requestPausedEvent.requestId });
|
||||||
else
|
else
|
||||||
route = new RouteImpl(this._client, requestPausedEvent.requestId);
|
route = new RouteImpl(this._client, requestPausedEvent.requestId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue