Skip to content

Commit

Permalink
Update cy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyrohrbough committed Dec 9, 2021
1 parent b9154f5 commit 6096cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/src/cypress/cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6096cd1

Please sign in to comment.