Skip to content

test: fix unload-IPC and protocol.handle 'is fast' flakes - #55133

Merged
dsanders11 merged 1 commit into
44-x-yfrom
manual-bp/claude/pr/55083/branch/44-x-y
Oct 20, 2026
Merged

dsanders11 merged 1 commit into
44-x-yfrom
manual-bp/claude/pr/55083/branch/44-x-y

Conversation

@claude

@claude claude Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Description of Change

Manually backport #55083. See that PR for details.

Conflicts: spec/api-ipc.spec.ts conflicted on its electron/main import, because main also imports nativeImage from electron/common and this branch does not. I kept this branch's imports and added only app, which the test now needs for app.commandLine. The changes to spec/api-protocol.spec.ts and spec/api-web-frame-main.spec.ts applied cleanly and match #55083 exactly. The native relay from #52953 that the reworked is fast test measures is already on this branch. oxlint and oxfmt --check pass on the three spec files.

Checklist

🤖 Generated with Claude Code

https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS

Release Notes

Notes: none


Generated by Claude Code

* test: fix unload-IPC and protocol.handle 'is fast' flakes

Keep renderers at foreground priority in the two tests that wait for an
IPC sent from an unload handler after a cross-site navigation, so the
backgrounded old renderer does not miss Chromium's 500 ms unload timeout
under parallel spec load.

Rework protocol.handle 'is fast' to compare the native relay path against
both a direct fetch and the JS-pumped path, with a looser bound against
direct fetches and timings in the failure message.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS

* test: fix lint

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS

---------

Co-authored-by: Claude <[email protected]>
(cherry picked from commit efd4495)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS
@dsanders11
dsanders11 merged commit 8fc5329 into 44-x-y Oct 20, 2026
88 checks passed
@release-clerk

release-clerk Bot commented Oct 20, 2026

Copy link
Copy Markdown

No Release Notes

@dsanders11
dsanders11 deleted the manual-bp/claude/pr/55083/branch/44-x-y branch October 20, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants