Repository navigation
fix: keep Page Map search shortcuts current for visible controls - #4607
Merged
Merged
Conversation
The shortcut sweep now compares controls the page presents, preserving its check for stale usable keys while leaving hidden native-dialog fields to their deferred close update. Filtering the open Page Map still exposed a real missing DOM invalidation: repaint its scoped keys after rendering rows. The phone and desktop empty-filter assertions failed before this refresh and pass after it. Closes #4474
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.
Page Map's search reads its shortcut availability from the rendered rows. Refresh its scoped keys after rendering, so filtering away every entry removes ArrowDown and Enter and clearing the query restores them. The phone and desktop regression assertions both fail before the refresh and pass afterward.
The sweep introduced in #3456 also compared hidden controls. The reported step activates a Page Map contribution, which closes the native dialog before its deferred close handler refreshes the search field. Restrict the snapshot to visible elements: the sweep still checks the shortcuts a reader can use, including a reopened dialog, without demanding current metadata on a hidden field. No visible layout or styling changes.
Validation: four focused browser cases passed (dynamic-widgets sweep, both filtering viewports, and Page Map keyboard navigation), 695 runtime tests passed, and
pnpm run checkpassed. The kernel is rebuilt.CI evidence and reproduction limits
The JUnit records from scheduled runs 40492069054 and 40675368197 both report the search field retaining
ArrowDown Enterafter a Page Map contribution closes the dialog; the later run calls the contribution “Open queued.” The action's close path is inactivateSheetControlinbrowser/runtime/page-map-dialog.js, and the search scope's predicates inspect visible rows.Both the current sweep and the older handle-based input driver passed on current main before this change. An attempt to run the original revision could not start because its pinned Chromium headless shell (build 1243) is absent here. The deterministic before/after reproduction is the open dialog's empty-filter failure; the hidden-field diagnosis rests on the CI diagnostic and the close path, rather than a locally reproduced historical sweep failure.
Closes #4474 — automated triage