Repository navigation
fix: await offline keyboard handover before testing key delivery - #4598
Merged
Merged
Conversation
The held-key notice is removed when the controller takes the queue, before its scheduled frame releases the offline hold. The test could press x in that gap and mistake ordered replay for lost native delivery. Wait for rendering before exercising post-handover input. A paused-frame reproduction fails without the wait and passes with it; the focused case also passes at 10x CPU throttle. Closes #4466
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.
The offline startup test could press
xafter the held-key notice disappeared but before the keyboard controller's queued frame released the hold. The notice marks queue handover, so it cannot establish that subsequent keys already travel through ordinary DOM delivery. Wait forrendered(page)before exercising post-handover input; the existing tab navigation, key delivery and empty-queue assertions remain intact.This preserves #2649's ordered startup keys and early package navigation without changing runtime behavior. The scheduled run's macOS assertion failed while its Linux counterpart passed; the preceding scheduled run passed this case on both platforms. A controlled reproduction pauses the frame clock before refusing the first state read: the original ordering fails with
None, and resuming and waiting for rendering before the final input passes. The revised case also passes locally at 10× CPU throttle. The clock instrumentation is diagnostic only and is not committed.Closes #4466 — automated triage