Skip to content

test: fix race in reentrant loadURL() ready-to-commit test - #51324

Merged
ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-test-fix-race-in-reentrant-loadurl-ready-to-commit-test-1777214414749
Apr 26, 2026
Merged

ckerr merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-test-fix-race-in-reentrant-loadurl-ready-to-commit-test-1777214414749

Conversation

@trop

@trop trop Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

Backport of #51315

See that PR for details.

Notes: none.

Fix 'fails if loadurl is called after the navigation is ready to commit'
by using a done() callback to ensure the test waits for did-fail-load
before exiting.

Previously, the test would return and call afterEach(closeAllWindows),
potentially destroying the window while navigation was in flight.

Co-authored-by: Charles Kerr <[email protected]>
@trop
trop Bot requested a review from ckerr April 26, 2026 14:40
@trop trop Bot added 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 26, 2026
@ckerr
ckerr merged commit 557888e into 42-x-y Apr 26, 2026
75 checks passed
@ckerr
ckerr deleted the trop/42-x-y-bp-test-fix-race-in-reentrant-loadurl-ready-to-commit-test-1777214414749 branch April 26, 2026 17:30
@release-clerk

release-clerk Bot commented Apr 26, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant