From 6096cd1b691740c6c3a1a91b02581809c87d9b47 Mon Sep 17 00:00:00 2001 From: Emily Rohrbough Date: Thu, 9 Dec 2021 10:48:04 -0600 Subject: [PATCH] Update cy.ts --- packages/driver/src/cypress/cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/driver/src/cypress/cy.ts b/packages/driver/src/cypress/cy.ts index 41b711191b07..386d34afec3a 100644 --- a/packages/driver/src/cypress/cy.ts +++ b/packages/driver/src/cypress/cy.ts @@ -480,7 +480,7 @@ export class $Cy implements ITimeouts, IStability, IAssertions, IRetries, IJQuer // proxy has not injected Cypress.action('window:before:load') // so Cypress.onBeforeAppWindowLoad() was never called return $autIframe.on('load', () => { - if (state('isStable')) { + if (this.state('isStable')) { // Chromium 97+ triggers fires iframe onload for cross-origin-initiated same-document // navigations to make it appear to be a cross-document navigation, even when it wasn't // to alleviate security risk where a cross-origin initiator can check whether