Repository navigation
fix: carry focus out of inert closing thread cards - #4134
Merged
Merged
Conversation
The margin card fade introduced in #4001 keeps Close painted and briefly focused after the card becomes inert. The focus hold accepted that retired control, then the browser blurred it after the handoff had finished. Exclude composed inert ancestry from the shared focus-place reading, using the same inertness rule as exposure and keyboard routing. The reported Close case fails on main and both Close and marker pass with this change. A runtime regression also fails before and passes after; eight focused browser cases and all 563 runtime checks pass. Closes #4123
# Conflicts: # dist/kernel/kernel.json
# Conflicts: # dist/kernel/kernel.json
This was referenced Oct 25, 2026
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.
A returning diff thread could leave keyboard focus on the body because its margin card's Close button remained painted during the closing fade added in #4001. The focus hold accepted that inert control as its completed destination, before the browser blurred it.
The shared focus-place reading now excludes inert content through composed ancestry. Its inertness reader moves to the dependency-free tree module and remains shared with exposure and keyboard routing. The card keeps its fade, and focus moves to the thread's new seat.
The reported Close case failed on current main; both Close and marker now pass. A focused runtime regression fails with the old reading and passes with this change. Eight browser cases covering thread and reply transfers pass, as do all 563 runtime checks and the browser build.
A served
review-a-fixcomparison against the base completed document arrival, widget upgrade and state presentation without console errors on both arms. Before presentation each loaded 53 requests (47 code requests); candidate code grew by 133 bytes, including 43 JavaScript bytes. The added focus availability reading prevents retaining a retired control.Closes #4123 — automated triage