Repository navigation
fix: avoid rewriting a retired target’s absent projection class - #4320
Merged
Merged
Conversation
A hidden target retains its overlay record after projection has cleared its class. Retiring that record used classList.remove, which restates the empty class attribute. Use the platform’s forced toggle so retirement writes only when the class remains. The readiness case and both obligation-walk variants reproduce the teardown errors before this change and pass after it; their navigation and replay assertions remain intact. Closes #4315
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 hidden target keeps its overlay record after its projection class has been cleared. Retiring that record called
classList.remove(), which rewrote the already empty class attribute. Use the platform's forced toggle instead, preserving the shared focus and annotation paint while avoiding that redundant mutation. This changes no rendered state.The readiness case and both obligation-walk variants fail with the reported teardown diagnostics before the change and pass afterward. All 668 runtime tests and
pnpm run checkpass, and the committed kernel is rebuilt. Servedship-reviewpreviews on base and candidate each load 46 requests through upgrade and first server-state presentation, with 7 additional JavaScript bytes and no layout shifts.The broader page-control focus projection in #4294 exposes this existing retirement path; the earlier push's JUnit records pass these three cases, while run 40423336764 records their unchanged-class writes. A temporary write-stack probe identifies
paintTargetsretirement as the writer after the hidden-target branch has already cleared the class.Closes #4315 — automated triage