Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: do not send Fetch.continueRequest twice for auth requests (#10382)
Yury Semikhatsky7746cb52a7d2
diff --git a/packages/playwright-core/src/server/chromium/crNetworkManager.ts b/packages/playwright-core/src/server/chromium/crNetworkManager.tsindex f4668dae54..fd5f1e3a8b 100644--- a/packages/playwright-core/src/server/chromium/crNetworkManager.ts+++ b/packages/playwright-core/src/server/chromium/crNetworkManager.ts@@ -161,11 +161,6 @@ export class CRNetworkManager {this._responseExtraInfoTracker.requestPaused(request.request, event);}- if (!this._userRequestInterceptionEnabled && this._protocolRequestInterceptionEnabled) {- this._client._sendMayFail('Fetch.continueRequest', {- requestId: event.requestId- });- }if (!event.networkId) {// 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@@ -249,7 +244,7 @@ export class CRNetworkManager {let route = null;if (requestPausedEvent) {// We do not support intercepting redirects.- if (redirectedFrom)+ if (redirectedFrom || (!this._userRequestInterceptionEnabled && this._protocolRequestInterceptionEnabled))this._client._sendMayFail('Fetch.continueRequest', { requestId: requestPausedEvent.requestId });elseroute = new RouteImpl(this._client, requestPausedEvent.requestId);