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(webkit): make interception tests pass (#516)
Yury Semikhatsky6a0dba7b5666
diff --git a/src/webkit/wkPageProxy.ts b/src/webkit/wkPageProxy.tsindex f8acd87eab..a314b1c25f 100644--- a/src/webkit/wkPageProxy.ts+++ b/src/webkit/wkPageProxy.ts@@ -64,9 +64,19 @@ export class WKPageProxy {this._pageProxySession.dispatchMessage(message);}+ private _isProvisionalCrossProcessLoadInProgress() : boolean {+ for (const anySession of this._sessions.values()) {+ if ((anySession as any)[provisionalMessagesSymbol])+ return true;+ }+ return false;+ }+handleProvisionalLoadFailed(event: Protocol.Browser.provisionalLoadFailedPayload) {if (!this._wkPage)return;+ if (!this._isProvisionalCrossProcessLoadInProgress())+ return;let errorText = event.error;if (errorText.includes('cancelled'))errorText += '; maybe frame was detached?';