mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
fix(webkit): unflake frame detach tests (#509)
This commit is contained in:
parent
9b46014493
commit
a2c7553518
@ -67,7 +67,10 @@ export class WKPageProxy {
|
||||
handleProvisionalLoadFailed(event: Protocol.Browser.provisionalLoadFailedPayload) {
|
||||
if (!this._wkPage)
|
||||
return;
|
||||
this._wkPage._page._frameManager.provisionalLoadFailed(event.loaderId, event.error);
|
||||
let errorText = event.error;
|
||||
if (errorText.includes('cancelled'))
|
||||
errorText += '; maybe frame was detached?';
|
||||
this._wkPage._page._frameManager.provisionalLoadFailed(event.loaderId, errorText);
|
||||
}
|
||||
|
||||
async page(): Promise<Page> {
|
||||
|
Loading…
Reference in New Issue
Block a user