Repository navigation
fix: recognize retained menu line measurements in the write watch - #4588
Merged
Merged
Conversation
Reopening a fading menu after #4393 retains its status nodes. Removing their old line limits before measuring and restoring equal limits is necessary layout work, not an unchanged assignment. Credit only that remove/restore pattern and retain direct-write controls. No product behavior changes. Closes #4435
This was referenced Oct 29, 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.
The DOM-write watch now credits the menu's remove-and-restore measurement of its line limits, while continuing to reject direct repeated assignments. Reopening during the closing fade retains the status nodes;
holdMenuremoves the previous opening's limits, measures the fresh text, and reapplies them. Equal dimensions therefore produce a necessary round trip that the watch previously rejected.This preserves #4393's retained menu controls and scroll position. That change removed the previous teardown on reopening, exposing the watch's assumption that an attribute returning to its original value did no useful work. The correction is confined to the held marker and line-limit-only styles passing through removal; it does not exempt arbitrary writes on these nodes. No product rendering changes.
Validation: the new sensor regression fails before the correction and passes afterward, with controls proving direct restatements still report errors. Nine focused browser checks pass: both sensor cases, all six cases in the report, and the open-menu news stability case. Before the correction, five of the six reported cases reproduced the teardown diagnostic on current main; all six test bodies passed. The earlier CI artifact from run 40470206147 records all six cases passing before #4393.
Closes #4435 — automated triage