Repository navigation
test: fix unload-IPC and protocol.handle 'is fast' flakes - #55132
Merged
Merged
Conversation
* 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
MarshallOfSound
approved these changes
Oct 20, 2026
jkleinsc
approved these changes
Oct 20, 2026
|
No Release Notes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Manually backport #55083. See that PR for details.
Conflicts:
spec/api-ipc.spec.tsconflicted on itselectron/mainimport, because main also importsnativeImagefromelectron/commonand this branch does not. I kept this branch's imports and added onlyapp, which the test now needs forapp.commandLine. The changes tospec/api-protocol.spec.tsandspec/api-web-frame-main.spec.tsapplied cleanly and match #55083 exactly. The native relay from #52953 that the reworkedis fasttest measures is already on this branch. oxlint andoxfmt --checkpass on the three spec files.Checklist
npm testpasses🤖 Generated with Claude Code
https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS
Release Notes
Notes: none
Generated by Claude Code