From f5bba267f5190875ec270f2a7389a6ab255d461d Mon Sep 17 00:00:00 2001 From: Matthew Schile Date: Fri, 2 May 2025 16:27:49 -0600 Subject: [PATCH 1/2] fix: hang when navigating to about:blank --- packages/app/src/runner/aut-iframe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/runner/aut-iframe.ts b/packages/app/src/runner/aut-iframe.ts index c73aff2da0a3..43645f70c6e0 100644 --- a/packages/app/src/runner/aut-iframe.ts +++ b/packages/app/src/runner/aut-iframe.ts @@ -129,8 +129,6 @@ export class AutIframe { return } - this.$iframe[0].src = 'about:blank' - this.$iframe.one('load', () => { if (testIsolation) { this._showTestIsolationBlankPage() @@ -140,6 +138,8 @@ export class AutIframe { resolve() }) + + this.$iframe[0].src = 'about:blank' }) } From 2d3456a215fe5dbcc95a13ac6419c3ca788f78b2 Mon Sep 17 00:00:00 2001 From: Matthew Schile Date: Fri, 2 May 2025 16:39:08 -0600 Subject: [PATCH 2/2] update changelog --- cli/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index da42beefb1da..2964b479cdb2 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -10,6 +10,7 @@ _Released 5/6/2025 (PENDING)_ **Bugfixes:** - Fixed an issue where the configuration setting `trashAssetsBeforeRuns=false` was ignored for assets in the `videosFolder`. These assets were incorrectly deleted before running tests with `cypress run`. Addresses [#8280](https://github.com/cypress-io/cypress/issues/8280). +- Fixed a potential hang condition when navigating to `about:blank`. Addressed in [#31634](https://github.com/cypress-io/cypress/pull/31634). **Misc:**